admin管理员组文章数量:1318981
Background:
I have been developing both .Net Maui and WinUI 3 apps in Visual Studio 2022.
Nevertheless, when I downloaded Syncfusion Essential Studio, it said "Windows 10 SDK needed".
Given that I was loading a project targetting .Net 9,
SampleBrowser.WinUI_Net90.sln
,
I (incorrectly) assumed I could use latest Windows 11 SDK. (I assumed the mention of "Windows 10 SDK" was simply a message that never got updated to say "Windows 11").
So I installed (some features from) Windows 11 SDK from a Microsoft download link.
But when I built Essential Studio's WinUI Demo code into VS 2022, got error:
2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2683,5): error MSB3774: Could not find SDK "Microsoft.UniversalCRT.Debug, Version=10.0.19041.0".
How install "Microsoft.UniversalCRT.Debug, Version=10.0.19041.0"
?
Background:
I have been developing both .Net Maui and WinUI 3 apps in Visual Studio 2022.
Nevertheless, when I downloaded Syncfusion Essential Studio, it said "Windows 10 SDK needed".
Given that I was loading a project targetting .Net 9,
SampleBrowser.WinUI_Net90.sln
,
I (incorrectly) assumed I could use latest Windows 11 SDK. (I assumed the mention of "Windows 10 SDK" was simply a message that never got updated to say "Windows 11").
So I installed (some features from) Windows 11 SDK from a Microsoft download link.
But when I built Essential Studio's WinUI Demo code into VS 2022, got error:
2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2683,5): error MSB3774: Could not find SDK "Microsoft.UniversalCRT.Debug, Version=10.0.19041.0".
How install "Microsoft.UniversalCRT.Debug, Version=10.0.19041.0"
?
1 Answer
Reset to default 0Searching for this error, I found this answer:
https://stackoverflow/a/78632243/199364
Which explains the situation:
When you create a WinUI3 project that targets a Windows SDK version that you do not have installed, your project won't build because it's missing core dependencies. One example is, of course, Microsoft.UniversalCRT.Debug from your target SDK. Hence the build errors.
This told me two things:
Microsoft.UniversalCRT.Debug
is part of Windows SDK.- Having the latest Windows SDK does not help; must have the SDK version mentioned in the error:
10.0.19041.0
An easy way to correctly install is via Visual Studio Installer:
- Run Visual Studio Installer
- Select "Modify" button at right of the VS version you wish to update. E.g. "Visual Studio Community 2022".
- In section "Desktop & Mobile", CHECK "Windows application developer".
- In right-side pane, CHECK "Windows 10 SDK (10.0.19041.0)
Now it worked for me:
- Re-start the demo project
SampleBrowser.WinUI_Net90.sln
in Visual Studio. - Build & run.
本文标签: Syncfusion Essential Studio demos for WinUI3 on Net 9 says it needs Windows 10 SDKStack Overflow
版权声明:本文标题:Syncfusion Essential Studio demos for WinUI3 on .Net 9 says it needs Windows 10 SDK - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742055788a2418286.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论