Skip to content

Build Error on .NET 5 #187

@PiotrekPKP

Description

@PiotrekPKP

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions