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
What's the recommended way of automatically harvesting the WinRT definitions from NuGet referenced WinMD files.
Current situation:
I have several NuGet packages that provide - for .net8 - a CsWinRT projection. This has a lib/net8.0-windows10/Component.Projection.dll.
In that NuGet package for uap10 and netstandard2.0 support I included the WinMD file as a copy.
On .NET8 I have a targets file with ItemGroup <CsWinRTInclude Include="..\..\lib\netstandard2.0\Component.winmd" />.
As this is not part of either the <Reference>-group, nor available anywhere else, what's the intended way to consume a CsWinRT projection library, while not having to manually include all ActivatableClass-definitions in the AppX manifest?
I tried with
additional info:
As a workaround I am setting CsWinRTInputs for CsWinRT, and statically adding the WinMD through a ReferenceCopyLocalPaths-item (including Implementation-metadata), so the WinMD isn’t swallowed by CsWinRT and copied to the OutputDirectory, as CsWinRT eliminates these as well (which completely invalidates stuff like winrt::create_instance, will add more details here later), this item also results in WindowsAppSdk harvesting the WinMD and creating necessary Package-manifest entries.
Which isn’t ideal.
What's the recommended way of automatically harvesting the WinRT definitions from NuGet referenced WinMD files.
Current situation:
I have several NuGet packages that provide - for .net8 - a CsWinRT projection. This has a lib/net8.0-windows10/Component.Projection.dll.
In that NuGet package for uap10 and netstandard2.0 support I included the WinMD file as a copy.
On .NET8 I have a targets file with ItemGroup
<CsWinRTInclude Include="..\..\lib\netstandard2.0\Component.winmd" />
.As this is not part of either the
<Reference>
-group, nor available anywhere else, what's the intended way to consume a CsWinRT projection library, while not having to manually include all ActivatableClass-definitions in the AppX manifest?I tried with
But that doesn't work.
The text was updated successfully, but these errors were encountered: