You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When authoring a component, if a public class implements a projected interface, source generator hard-error and emits It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'Win32Exception' with message 'Incorrect function'.
Adding another internal class that implements projected interface works fine. It's only when the class is public (i.e. included in the generated winmd) source generator would freak out.
I'm working on a sample of implementing app extension point via OOP WinRT Server, to replace OOP COM Server. This bug is a show-stopper for C#. C++ as found in the repo above is working as expected.
The text was updated successfully, but these errors were encountered:
@roxk Thanks for the repro. The issue is the WinRT authoring source generator needs to be able to find the WinMDs for any referenced components. In this case, it is failing to find the SDK component's WinMD due to it is not included in the referenced NuGet. If you include it in the referenced NuGet by doing something like below in the nuspec, you should see it build without issues. Feel free to reopen if you still run into issues.
Describe the bug
When authoring a component, if a public class implements a projected interface, source generator hard-error and emits
It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'Win32Exception' with message 'Incorrect function'
.To Reproduce
csharp
branch.PackagedOOPWinRTServerAppExtension.sln
and buildAppExtensionCSharp
CS8785
and compile error.Expected behavior
It builds successfully.
AppExtensionCSharp.WidgetProvider
should implementSDK.IWidgetProvider
in the generated winmd.Version Info
Additional context
The text was updated successfully, but these errors were encountered: