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.
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.
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.