.NET 9 UWP Build Error

Singh Wong 51 Reputation points
2024-12-12T08:26:00.6966667+00:00

A blank project created in Visual Studio 2022 using .NET 9 UWP generates a build error: Microsoft.UI.Xaml.Markup.winmd cannot be referenced. Referencing a Windows Metadata component directly when targeting .NET 5 or higher is not supported. For more information, see https://aka.ms/netsdk1130

Visual Studio 2022 17.12.3

屏幕截图 2024-12-12 161226

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,008 questions
Universal Windows Platform (UWP)
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,307 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Singh Wong 51 Reputation points
    2024-12-13T11:53:25.9+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.