{"id":15418153,"url":"https://github.com/asklar/winrtcomponent","last_synced_at":"2025-08-01T23:41:14.297Z","repository":{"id":111473265,"uuid":"256674828","full_name":"asklar/WinRTComponent","owner":"asklar","description":"How to consume C# WinRT components from C++","archived":false,"fork":false,"pushed_at":"2020-04-23T04:12:31.000Z","size":34,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T08:43:44.512Z","etag":null,"topics":["cpp","csharp","csharp-code","dotnet","dotnet-native","ilc","net-native","uwp","uwp-app","uwp-applications","uwp-apps","uwp-dev"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asklar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-18T05:13:00.000Z","updated_at":"2024-01-30T20:12:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f41be22-a2f3-4d70-85fa-bf5dc98aa9d8","html_url":"https://github.com/asklar/WinRTComponent","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"cf3b96f744fb8e2b364aa104de8dafff3f1f82f9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asklar%2FWinRTComponent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asklar%2FWinRTComponent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asklar%2FWinRTComponent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asklar%2FWinRTComponent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asklar","download_url":"https://codeload.github.com/asklar/WinRTComponent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249716256,"owners_count":21315062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","csharp","csharp-code","dotnet","dotnet-native","ilc","net-native","uwp","uwp-app","uwp-applications","uwp-apps","uwp-dev"],"created_at":"2024-10-01T17:19:34.401Z","updated_at":"2025-04-19T14:40:20.630Z","avatar_url":"https://github.com/asklar.png","language":"C++","readme":"# Consuming C# WinRT components from C++\n\nThis project provides a sample for how to call a C# WinRT component from a C++/WinRT UWP app.\n\nThe default out-of-the-box solution in Visual Studio is faulty in that it builds, but then fails at runtime with a cryptic exception:\n\n```\nFUSION_E_REF_DEF_MISMATCH\n0x80131040  The located assembly's manifest definition does not match the assembly reference\n```\n\nHere's how to get it to work:\n1. Right click on the VCXProj file ➡ Manage NuGet Packages.\n2. Search for **Microsoft.Net.Native.Compiler**, and install it\n3. Then add the following properties to the VCXProj\n```\n  \u003cPropertyGroup\u003e\n    \u003cUseDotNetNativeToolchain Condition=\"'$(Configuration)'=='Release'\"\u003etrue\u003c/UseDotNetNativeToolchain\u003e\n    \u003cDotNetNativeVersion\u003e2.2.3\u003c/DotNetNativeVersion\u003e\n  \u003c/PropertyGroup\u003e\n```\n(Replace the `2.2.3` version above with the version from the .net native compiler NuGet Package)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasklar%2Fwinrtcomponent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasklar%2Fwinrtcomponent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasklar%2Fwinrtcomponent/lists"}