WinUI workload WinUI Blank App (Packaged with Windows Application Packaging) giving compile error when debugging

Michael 146 Reputation points
2025-09-25T18:13:37.37+00:00

I'm trying to get a WinUI solution to compile and run in C# using the VS 2026 Insiders release. I'm running into some snags using the stock workload (WinUI Blank App (Packaged with Windows Application Packaging)).

I created a new project using WinUI Blank App (Packaged with Windows Application Packaging Project). This creates a solution with 2 projects, the main app and the WAPP packing project.

For the app the Target OS is 10.0.26100.0 and the Supported OS version is 10.0.17763.0. In the WAPP project the Target version is 10.0.26100.0 and the Min version is 10.0.17763.0.

When I try to rebuild the solution, I get a compile error : "Could not find SDK "Microsoft.UniversalCRT.Debug, Version=10.0.26100.0".

I've tried different combination of Target/Min versions. I need some help to get this workload to work.

I even added the Windows Universal CRT SDK via the VS Installer

Developer technologies | Visual Studio | Debugging
0 comments No comments
{count} votes

Answer recommended by moderator
  1. Susmitha T (INFOSYS LIMITED) 910 Reputation points Microsoft External Staff
    2025-09-26T08:40:40.4433333+00:00

    Thanks for reaching out!

     
    Please follow the troubleshooting steps outlined below:

    1.SDK Installation: Double-check that you have properly installed the Windows Universal CRT SDK version 10.0.26100.0. You can verify this via the Visual Studio Installer by selecting "Individual components" and ensuring the correct SDK is installed.

    2.Update NuGet Packages: Ensure that your project is referencing the correct version of the Microsoft.WindowsAppSDK. In Visual Studio, go to Tools > NuGet Package Manager > Manage NuGet Packages for Solution... > Updates, and update the package if needed.

    3.Check Project File for Correct Targeting: Inspect your .csproj file and ensure that the TargetFramework and Windows SDK version are correctly set. You might want to set the <TargetFramework> property to ensure it aligns with your installed Windows SDK.

    4.Review Configuration Manager: Make sure that the project is set to build and deploy correctly in the Configuration Manager. Look for the build configurations and verify both projects (the main app and WAPP project) are included.

    5.Repair or Reinstall SDK: Repair or Reinstall SDK
    If the problem persists, you may consider reinstalling or repairing your Visual Studio installation, which can fix issues related to the SDKs and components.

     

    Let me know if you need any further help with this. We'll be happy to assist.

    If you find this helpful, please mark this as answered.


0 additional answers

Sort by: Most helpful

Your answer

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