Description
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
<ItemGroup>
<WinMDFullPath Include="..\..\netstandard2.0\Component.winmd" />
</ItemGroup>
But that doesn't work.