The SDK Microsoft.NET.sdk specified could not be found.

Kim Strasser 1,691 Reputation points
2025-11-10T22:38:41.35+00:00

I get this error when I try to create a new project in Visual Studio Community 2022 (64-bit) 17.14.19:

The SDK Microsoft.NET.sdk specified could not be found.

In addition, when I try to open an existing solution in VS Community 2022 then my iOS and Android projects are unloaded and reloading the projects fail with the same error.

I have already installed the .NET 9 SDK x64 and restarted my machine. https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-9.0.306-windows-x64-installer

In addition, the following was already installed when I installed Visual Studio:

Screenshot 2025-11-10 233438

Screenshot 2025-11-10 233514

How can I install Microsoft.NET.sdk?

Developer technologies | .NET | .NET MAUI
{count} votes

Answer accepted by question author
  1. Michael Le (WICLOUD CORPORATION) 6,020 Reputation points Microsoft External Staff Moderator
    2025-11-11T08:52:46.2166667+00:00

    Hello Kim,

    It seems that the installation is either incomplete or corrupted, which may be causing the components to not connect properly.

    First, let's check what's actually installed on your machine.

    Please note that these commands are meant to run one at a time in PowerShell.

    Open PowerShell and run these commands to see what's really on your system:

    dotnet --list-sdks 
    dotnet --list-runtimes 
    dotnet workload list 
    

    If you get an error saying dotnet isn't recognized, that confirms the SDK isn't properly installed or registered on your machine.

    Next, try repairing the workload installation

    Close Visual Studio completely, then open PowerShell as administrator and run:

    dotnet nuget locals all --clear 
    dotnet workload repair 
    

    If the repair doesn't work, you can remove and reinstall the MAUI workload:

    dotnet workload uninstall maui 
    dotnet workload install maui 
    

    Clean up Visual Studio's cache

    While Visual Studio's closed, delete these folders:

    Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\VisualStudio\17.0_*\ComponentModelCache" -Recurse -Force -ErrorAction SilentlyContinue 
    Remove-Item -Path "$env:LOCALAPPDATA\Temp\.net" -Recurse -Force -ErrorAction SilentlyContinue 
    

    Run the Visual Studio cleanup tool

    "C:\Program Files (x86)\Microsoft Visual Studio\Installer\InstallCleanup.exe"
    

    Repair Visual Studio itself

    After running the cleanup tool:

    1. Open Visual Studio Installer
    2. Click the dropdown next to your Visual Studio 2022 Community installation
    3. Select "Repair"
    4. Let it complete and restart your machine

    One more thing to check

    Look in your solution folder for a file called global.json. If it exists, open it and check if it specifies a .NET SDK version you don't have installed. You can either delete this file or update it to match your installed SDK version.

    After trying these steps, please let me know what happens. If you're still seeing the error, I'd like to see the output from those dotnet --list commands to help figure out what's missing.

    1 person found this answer helpful.

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.