Hello @Chris,
Welcome to Microsoft Q&A forum.
Please search "Edit the system environment variables" in Windows Search box, click to open it. Click Environment Variables… > in System variables, find Path, select it > click Edit. Find C:\Program Files\dotnet\
, on the right, click Move Up to upward it(make sure that it lists higher then C:\Program Files (x86)\dotnet\
). Click Ok, reboot your machine, open VS and test again. Or, try to delete the C:\Program Files (x86)\dotnet\
path.
If this doesn’t work, kindly try following:
- Manually download and install .NET 8.0 from here: Download .NET 8.0 (SDK 8.0.402|Windows|x64).
- Reinstall ".NET desktop development" workload => open VS Installer > Modify > Workloads > uncheck “.NET desktop development” workload > Modify > check it again > Modify.
- Open CMD, run
dotnet --info
, check the information about the installed .NET. Such as the information about the installation path and the global.json file. - Try to repair(VS Installer > More > Repair) and reset VS(run
devenv /ResetSettings
in "Developer Command Prompt for VS 2022").
Please also check this similar thread => The SDK Microsoft.NET.Sdk
specified could not be found. In Visual Studio Community 2022 version 17.5 .
Feel free to let us know the results.
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.