After upgrading from .NET 5 preview 7 to .NET 5 RC 2 I'm getting this error on project build:
Microsoft.NET.Sdk.targets(934, 5): [NETSDK1130] Referencing a Windows Metadata component directly when targeting .NETCoreApp,Version=v5.0 is not supported. Use the C#/WinRT projection tool (https://aka.ms/cswinrt) or a provided projection for this target.
To reproduce:
Create WPF app using .NET 5, install newest version of ModernWpfUI (I'm getting error on older versions too), run build.
Thanks in advance!