Skip to content

Unable to add C++/WinRT Runtime Component to UWP C# Application #425

@Code-ScottLe

Description

@Code-ScottLe

Just want to make sure that I'm not doing something wrong here. I have created a Runtime Component project , implemented a bare minimum of a single Runtime class (following the example here: https://docs.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/author-events), but i could not reference this project from a C# UWP Application within the same solution. Trying to add a reference to the project would just end up with the message of The method or opration is not implemented . Is this a known issue with Visual Studio or C++/WinRT? Project referencing from a C++/WinRT Blank application doesn't have this issue.

Directly referencing the winmd files under Debug\Merged\ will just result in a runtime exception of something not activated class.

Also, if i tried to manually reference the project by editing the csproj file manually, I have 2 cases happening. One project works just fine and the other one is complaining about not having the DLL of the Runtime Time component under its Debug folder.

I can try to upload both projects here (the one that kinda-works and the one that doesn't) later but if anybody have any pointers, that would be great.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions