Share via

How to fix my VS

2023-06-09T18:53:59.7833333+00:00

Снимок экрана 2023-06-09 215113

Снимок экрана 2023-06-09 215150

Снимок экрана 2023-06-09 215248

Снимок экрана 2023-06-09 215314

I have an issue with my VS. It says that it cant see the Microsoft.NET SDK. When i create and open the projects it cant find the projects' files, but when I open the explorer I can see it. Also I tried to repair the VS through the VS installer and nothing changed.

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,811 Reputation points Microsoft External Staff
    2023-06-12T02:36:15.9233333+00:00

    Hello @Анастасия Андреева,

    Welcome to Microsoft Q&A forum.

    Please first close VS => search Edit environment variables for your account in Windows Search box and open Environment Variables window => in System variables click Path => click Edit => search and check if both C:\Program Files (x86)\dotnet\ and C:\Program Files\dotnet exist => select C:\Program Files\dotnet\ and click Move Up button on the right to move it up to locate higher than C:\Program Files (x86)\dotnet\ => restart VS and reopen your solution.

    User's image

    Besides, please try to update VS. Here are some other suggestions for you to refer to: The SDK Microsoft.NET.Sdk specified could not be found…

    BTW, if you try to create a project locally, save it in another clean folder, not under OneDrive subfolders, will the same issue appear?

    Please feel free to let us know the results.

    Sincerely,

    Tianyu


    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.


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.