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"?

Share Improve this question asked Jan 19 at 22:27 ToolmakerSteveToolmakerSteve 21.5k16 gold badges111 silver badges221 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Searching 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