The SDK 'Microsoft.NET.Sdk' specified could not be found. in Visual Studio Community 2022 version 17.5

Raihanudin Rafif 35 Reputation points

Since Visual Studio 2022 updated from version 17.4 to 17.5, I couldn't load my project. and get the error "The SDK 'Microsoft.NET.Sdk' specified could not be found." But if the project was opened in version 17.4, the project was loaded successfully.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,759 questions
No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 14,551 Reputation points Microsoft Vendor

    Hello @Raihanudin Rafif ,

    Welcome to Microsoft Q&A forum.

    Please first confirm that .NET SDK has been checked in VS Installer > Modify > Individual components > .NET > .NET SDK. If it isn’t checked, please check it and click Modify.

    Please then create a new .NET based project and check if the same error appears, if the same error appears, please try following to narrow down this issue:

    1. Reboot your machine and restart VS.
    2. Repair Visual Studio from VS Installer > More > Repair.
    3. Reset VS settings(run Developer Command Prompt for Visual Studio 2022 > run devenv /ResetSettings).

    If the same error doesn’t appear, then please try following:

    1. Right-click your project > Unload Project > confirm that the <Project Sdk="Microsoft.NET.Sdk"> line exists > right-click your project again > Reload Project. Open VS Installer > Modify > Individual components > .NET > make sure that .NET SDK has been checked, if not, check it and click Modify.
    2. Remove the hidden .vs, bin and obj folders in your solution/project folder and rebuild your project in VS.

    Please feel free to let us know if this issue disappears.

    Best Regards,


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful