Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find SDK "Microsoft.UniversalCRT.Debug, Version=10.0.18362.0" #871

Closed
5 tasks
odyright opened this issue Feb 12, 2022 · 13 comments
Closed
5 tasks

Comments

@odyright
Copy link

odyright commented Feb 12, 2022

Describe the bug
i cloned the project from winui3 branch and when trying to build, i got Could not find SDK "Microsoft.UniversalCRT.Debug, Version=10.0.18362.0"

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'

Screenshots
image

Version Info

  • Xaml Controls Gallery - Downloaded from Store
    • If so, which version? (1.2.x -- Found on the Settings page of the app.)
  • [*] WinUI 3 Controls Gallery - Downloaded from Store
    1.3.10.0
  • [*] App built locally from source
    • WinUI 3 branch

Windows version:

  • [*] 11 (21H2)

Device form factor:

  • [*] Desktop
  • Mobile
  • Xbox
  • Surface Hub
  • IoT
@gregwoo-microsoft
Copy link
Contributor

Thanks for filing this issue. We are in the process of updating the source code for the WinUI 3 Controls Gallery so let's revisit this problem once the branches are updated.

@bpulliam
Copy link
Contributor

Fixed

@ThatMouse
Copy link

ThatMouse commented May 18, 2022

I'm getting this error too when I try to build...
Edit: I'm in Windows 11 in case that matters.

@K3UL
Copy link

K3UL commented May 18, 2022

Same here, NOT fixed.

@K3UL
Copy link

K3UL commented May 18, 2022

For @ThatMouse and anyone ending up here, I was able to build and run the project by doing the following :

  • Clone the main branch
  • Install the 1.1-preview3 Windows SDK. The version used is referenced in the standalone.props file, in the <ProjectReunionPackageVersion> and <ProjectReunionWinUIPackageVersion> nodes. Install the C# extension from Latest Preview here : https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads
  • In the WinUIGallery.DesktopWap.Package.wapproj file, in the node <TargetPlatformVersion>, I replaced the version (10.0.18362.0, the one of the error message) with 10.0.19041.0. The right version number (which is the one for SDK 1.1-preview3 I guess) is the name of the folder that sits in C:\Program Files (x86)\Windows Kits\10\Platforms\UAP
  • Not sure if important, I set the configuration as Debug and x64.

After these actions, I just rebuilt DesktopWap and then DesktopWap.Package, put DesktopWap.Package as the startup project and ran the debugger with success. Since I had the app installed from the Store, it asked me if I wanted to overwrite it and I said yes.

@bpulliam I think this shows that the version in WinUIGallery.DesktopWap.Package.wapproj (10.0.18362.0) does not match what it should be considering the use of the 1.1-preview3 SDK in standalone.props

@gregwoo-microsoft
Copy link
Contributor

Thank you for sharing this @K3UL. I hope that this solves your issue @ThatMouse.

@ThatMouse
Copy link

Thank you @K3UL , changing the target worked!

@gregwoo-microsoft gregwoo-microsoft pinned this issue Jul 11, 2022
@bpulliam bpulliam unpinned this issue Oct 24, 2022
@AMArostegui
Copy link

Or rather, tough overkill, install the exact same Windows 10 SDK version (in this case 10.0.18362.1), as the Universal CRT files are part of Windows 10 Sdk

@octaviordz
Copy link

Faced same issue. Worked around by doing[1] as described in previous comment by @K3UL.

[1]:

In the WinUIGallery.DesktopWap.Package.wapproj file, in the node , I replaced the version (10.0.18362.0, the one of the error message) with 10.0.19041.0 .

@octaviordz
Copy link

Hi @AMArostegui how to install the specific version of Windows 10 SDK?
I installed the SDK following instructions on [1] but there is no mention about how to install a specific version.

[1] https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/set-up-your-development-environment?tabs=cs-vs-community%2Ccpp-vs-community%2Cvs-2022-17-1-a%2Cvs-2022-17-1-b

@AMArostegui
Copy link

Hi @AMArostegui how to install the specific version of Windows 10 SDK? I installed the SDK following instructions on [1] but there is no mention about how to install a specific version.

[1] https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/set-up-your-development-environment?tabs=cs-vs-community%2Ccpp-vs-community%2Cvs-2022-17-1-a%2Cvs-2022-17-1-b

In this link you can find specific SDK versions

@MarkBrainfire
Copy link
Contributor

MarkBrainfire commented Mar 2, 2023

I solved this issue by going to Visual Studio -> Tools -> Get Tools and Features ....
And modifying my install to include UWP Windows 10 SDK (10.0.18362.0) under individual components.

UWP Components

@mastersamm-db
Copy link

mastersamm-db commented Feb 7, 2025

Good for "Microsoft.UniversalCRT.Debug, Version=10.0.26100.0"
Image

Credits: @starnuto di topo
https://stackoverflow.com/a/76456587

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants