Visual Studio Community 2022 (64-bit) - Preview - how to remove .NET SDK 8.0.400 (x64) from Visual Studio

Murray Sobol 21 Reputation points
2024-09-26T17:14:52.1+00:00

An update is available for .NET SDK 8.0 but if fails to install since I have the previous version .NET SDK 8.0.400 (x64) from Visual Studio installed.

I tried to update Visual Studio by selecting "remove unsupported software..(or a message to that effect) but it did not remove it.

Any suggestions would be appreciated.

Thanks

Murray

Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 60,331 Reputation points
    2024-09-26T17:23:27.8033333+00:00

    The 'remove' feature will only remove tools that are out of support. NET SDK 8.0.400 is still supported and therefore won't be removed. Not sure why you're getting an error installing the newer SDK just because the older one is installed. You can have any # of SDKs installed (across versions) without any issues.

    The easiest thing to do is go to Installed Apps in Windows and uninstall the SDK from there. However note that if you don't have a newer SDK installed then it'll break stuff that relies on it (e.g. Visual Studio) although apps that use the runtime should be fine.

    Alternatively you can remove the SDK by going to a developer command prompt as an admin. Run dotnet --list-sdks to see what is available. Then download and use the DotNet uninstall tool from MS as discussed here.

    But I would recommend you get the newer SDK installed first. I suspect if you're getting an install error then it won't be fixed by removing the older SDK.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.