question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Updating to VS16.8.4 doesn't correctly uninstall .NET SDK 5.0.101

See original GitHub issue

Updating from 16.8.3 to 16.8.4. Having 16.9P3 installed alongside.

Symptom: In control panel, SDK 5.0.102 (from VS) and 5.0.200-preview (from VS) exist as expected. SDK 5.0.101 (not from VS) exists unexpected.

Uninstalling the entry doesn’t remove 5.0.101 SDK.

dotnet --info output:

Host (useful for support):
  Version: 5.0.2
  Commit:  cb5f173b96

.NET SDKs installed:
  5.0.101 [C:\Program Files\dotnet\sdk]
  5.0.102 [C:\Program Files\dotnet\sdk]
  5.0.200-preview.20601.7 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
huoyaoyuancommented, Jan 22, 2021

I remembered that I’ve only manually installed preview7 and rc1 before RTM. Uninstalling the entry shouldn’t break the SDK, since there are still VS installing holding it.

It should be safe to remove the unwanted folders and keep the desired layout? Repairing VS seems reliable if anything broken.

0reactions
PtrJsncommented, Mar 5, 2021

@joeloff - Any update to this issue? I’m noticing similar behavior to @huoyaoyuan. I appreciate how thorough you both have been in documenting the different aspects of the problem here.

I had 5.0.103 and 5.0.200 SDK’s installed, I believe via VS 2019 installations only. 5.0.200 seemed to be the only one in use, so I uninstalled 5.0.103. dotnet CLI still reports 5.0.103 is installed, & the sdk\5.0.103 directory is still present, but the ARP entry is gone. The dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0 directory is gone too. No errors in the %temp% logs. dotnet-core-uninstall lists neither 5.0.103 nor 5.0.200 SDK’s.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove the .NET runtime and SDK
This article describes how to uninstall .NET. You'll need to determine which versions of the .NET Runtime and SDK are currently installed, ...
Read more >
how to uninstall dot net core version which was intalled ...
currently I have core 5.0 version installed.Somehow i want to unstall the existing version .so how to unstall it properly from windows 10?...
Read more >
Unable to uninstall .NET Core SDK install with visual studio ...
1 Answer. To uninstall sdk versions that were installed via the Visual Studio installer you need to modify your installation using the ...
Read more >
How to Remove .NET 5.0 from Computer - YouTube
Blocking issues The net framework 4.6.1 is not supported on this operating ... How To Completely Uninstall Applications That Won't Uninstall.
Read more >
Visual Studio 2019 unable to locate .Net Core SDK
Step 1) First run dotnet --list-sdks from the command line (as in Grzegorz Smulko's answer). Take note of the greatest version number.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found