XAML 找不到SDK“Microsoft.UniversalCRT.Debug”

fbcarpbf  于 2023-06-19  发布在  其他
关注(0)|答案(1)|浏览(332)

我在Visual Studio 2022社区中使用C#编程语言制作“Blank App,Packaged with Windows Application Packaging Project(WinUI 3 in Desktop)”项目时,SDK没有发现这个问题。
这是完整的错误消息:严重性代码说明项目文件行源代码抑制状态错误MSB3774找不到SDK“Microsoft.UniversalCRT.Debug,Version=10.0.22621.0”。App7(包)C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 2623内部版本
And an image of the Error list
请记住,我根本没有更改代码。
谢谢你好心的帮助。
我尝试从VS单独组件安装CRT通用SDK,但不起作用Image of individual components也尝试了这个解决方案,但不起作用:MSBuild "The windows SDK version 10.0.19041.0 was not found" even though it's installed

qgelzfjb

qgelzfjb1#

我在Windows 10机器上运行Visual Studio 2022时遇到了同样的错误。安装“Windows 11 SDK”后问题消失,在错误报告的指定“Microsoft.UniversalCRT.Debug”的同一版本(即:10.0.22621.0,在这种情况下)。

相关问题