dotnet / dotnet/cli-lab

Unable to uninstall SDK preview versions

Open
#212 6 comments 0 reactions 0 assignees View on GitHub
Area-Uninstall-Tool question
Dominant language
C#
Stars
774
Forks
72
Avg merge
1d 23h
Merged PRs (30d)
2

Description

I have 2 SDKs installed:

1. `Microsoft .NET Core SDK 3.1.300 - preview (x64) from Visual Studio`
2. `Microsoft .NET Core SDK 5.0.200-preview.20614.14 (x64) from Visual Studio`

If I try to uninstall them using `Add or Remove Programs`

I get the following errors:
![image](https://user-images.githubusercontent.com/47532258/139843124-8cfd8b8b-ac7b-4c0e-8c6e-682cc3ea89d7.png)![image](https://user-images.githubusercontent.com/47532258/139843194-d077ce37-e05f-433b-a50f-8720e7d95ed6.png)

I have uninstalled the Visual Studio installations which originally installed these SDKs so I'm not able to run the Visual Studio Installer to modify and remove them.

**N.B.** I would have expected that when I uninstalled the Visual Studio installations which originally installed these SDKs that the SDKs be removed at the same time rather than being orphaned.

I have tried using the `dotnet-core-uninstall` tool but these SDKs are not listed when running the command:
`dotnet-core-uninstall list --sdk --x64`

The only way I can see that I can remove these SDKs is to re-install the Visual Studio installations that originally installed them to see if I can repair/modify the installations so that I can uninstall the SDKs prior to uninstalling the entire Visual Studio installations again. Unfortunately I don't know which versions of Visual Studio installed these SDKs and even if I did I don't think the old Visual Studio Community Preview versions are still available to download and install.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.