Skip to content

Cannot uninstall .NET 6 SDK installed by Visual Studio #50976

@tjmoore

Description

@tjmoore

dotnet --list-sdks lists the following, but I don't need .NET 6 and would like to remove it

6.0.301 [C:\Program Files\dotnet\sdk]
9.0.305 [C:\Program Files\dotnet\sdk]

Installed Apps on Windows shows:

Microsoft .NET SDK 6.0.300 (x64) from Visual Studio installed, however if I try to uninstall it I get

Image

It's looking for this MSI folder which doesn't exist C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.NetCore.SdkPlaceholder.6.0.300-rtm.22221.3,version=17.2.32503.368,machinearch=x64\

The SDK does exist however in C:\Program Files\dotnet\sdk\6.0.301

There's no option in Visual Studio Installer to remove it, only to remove .NET SDK which would be v9 I assume.

dotnet-core-uninstall app won't remove it as it was installed by VS later than 2019 Update 3

Though I could just delete the folder I guess, I would like to clean it up properly ensuring reg entries are removed and install app entry removed etc.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions