Hello @Dwayne A Ewing ,
Please check the system environment variables, make sure that the C:\Program Files\dotnet\
path variable locates higher than C:\Program Files (x86)\dotnet\
(if C:\Program Files (x86)\dotnet\
exists).
Search Edit the system environment variables
in Windows Search box > click to open it > click Environment Variables… > in System variables, select Path, click Edit > find C:\Program Files\dotnet\
and make sure that it lists higher than C:\Program Files (x86)\dotnet\
.
Try to manually install the .NET, for example .NET 8 from here: Download .NET 8.0(Windows|Installers|x64, you can also try to install x86 version if installing x64 version doesn’t work).
Run dotnet --info
command in CMD and check if there's a global.json file configured. If so, check that file and make sure that it didn't redirect the .NET SDK.
If the issue persists, try other suggestions here: The SDK ‘Microsoft.NET.Sdk’ specified could not be found…, and here: How to fix error: The SDK ‘Microsoft.NET.Sdk.Web’ specified could not be found.
Besides, if you are using any antivirus or security management software, make sure that they won’t prevent VS from loading and opening .NET projects.
Best Regards,
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.