visual studio 2022 fails to load a project when i create, error says Microsoft.Net.SDK could not be found when i manually try to add csproj f

Kramakrishna, Shilpa 0 Reputation points

iUser's image

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

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,981 Reputation points Microsoft Vendor

    Hello @Kramakrishna, Shilpa ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    Please search Edit the system environment variables in Windows Search box, click to open the System Properties window => click Environment Variables… => under System variables select Path => click Edit… =>  find C:\Program Files\dotnet\ and C:\Program Files (x86)\dotnet\ => Use Move Up/Move Down buttons on the right to make sure that C:\Program Files\dotnet\ lists/appears before C:\Program Files (x86)\dotnet\ => restart Visual Studio/reboot your machine and restart VS.

    Please feel free to let us know if it works.



    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.

    1 person found this answer helpful.

  2. Castorix31 82,126 Reputation points

    Which Template did you select ?

    Select for example : Windows Forms App (.NET Framework) :

    User's image