docs icon indicating copy to clipboard operation
docs copied to clipboard

Instructions do not work for .NET Core 5.0.4

Open skeeler opened this issue 4 years ago • 4 comments

I have .NET Core 5.0.4 runtimes (AspNet, NetCore, WindowsDesktopApp) installed and want to remove it. I have tried all of the guidance on this page, including using Windows App Uninstall, the dotnet-core-uninstall tool, and nothing works. 5.0.4 appears as installed when I run `dotnet --list-runtimes), but does not appear in the Windows app uninstall nor the dotnet-core-uninstall tool.

The guidance on this page should ideally be updated to reflect the instructions that will successfully remove .NET Core 5.0.4.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

skeeler avatar Jan 07 '22 18:01 skeeler

@skeeler Did you try using the .NET uninstall tool? https://docs.microsoft.com/en-us/dotnet/core/install/remove-runtime-sdk-versions?pivots=os-windows#net-uninstall-tool

adegeo avatar Jan 21 '22 23:01 adegeo

@skeeler Did you try using the .NET uninstall tool? https://docs.microsoft.com/en-us/dotnet/core/install/remove-runtime-sdk-versions?pivots=os-windows#net-uninstall-tool

Yes, I tried the dotnet-core-uninstall tool, but it doesn't see 5.0.4 while dotnet list does display it. I'm trying to keep "3" and "6" and remove everything "5". See attacched screenshot screenshot .

skeeler avatar Jan 22 '22 00:01 skeeler

I'm sorry for the delay @skeeler and for not fully reading your question where you said you did use the uninstall tool.

Can you output the results from dotnet --info it has more information about your environment. However, I feel like the uninstall tool is just not working well. I just tried it too and here are my outputs, which is missing .NET 6... The info doesn't seem to match. Looking at the uninstall tool repo, it seems the last update was at the beginning of Nov, which seems odd. I'll contact some folks to see if I can figure out what the prescribed path is.

dotnet --info

.NET SDK (reflecting any global.json):
 Version:   6.0.101
 Commit:    ef49f6213a

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.22000
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\6.0.101\

Host (useful for support):
  Version: 6.0.1
  Commit:  3a25a7f1cc

.NET SDKs installed:
  3.1.416 [C:\Program Files\dotnet\sdk]
  5.0.405 [C:\Program Files\dotnet\sdk]
  6.0.101 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

dotnet-core-uninstall list


This tool cannot uninstall versions of the runtime or SDK that are 
    - SDKs installed using Visual Studio 2019 Update 3 or later.
    - SDKs and runtimes installed via zip/scripts.
    - Runtimes installed with SDKs (these should be removed by removing that SDK).
The versions that can be uninstalled with this tool are:

.NET Core SDKs:
  5.0.405  x64    [Used by Visual Studio. Specify individually or use —-force to remove]
  3.1.416  x64

.NET Core Runtimes:

ASP.NET Core Runtimes:
  6.0.2  x86

.NET Core Runtime & Hosting Bundles:

adegeo avatar Feb 10 '22 22:02 adegeo

@adegeo here is the dotnet --info output:

.NET SDK (reflecting any global.json):                                                             
 Version:   6.0.101                                                                                
 Commit:    ef49f6213a                                                                             
                                                                                                   
Runtime Environment:                                                                               
 OS Name:     Windows                                                                              
 OS Version:  10.0.22000                                                                           
 OS Platform: Windows                                                                              
 RID:         win10-x64                                                                            
 Base Path:   C:\Program Files\dotnet\sdk\6.0.101\                                                 
                                                                                                   
Host (useful for support):                                                                         
  Version: 6.0.1                                                                                   
  Commit:  3a25a7f1cc                                                                              
                                                                                                   
.NET SDKs installed:                                                                               
  3.1.416 [C:\Program Files\dotnet\sdk]                                                            
  6.0.100 [C:\Program Files\dotnet\sdk]                                                            
  6.0.101 [C:\Program Files\dotnet\sdk]                                                            
                                                                                                   
.NET runtimes installed:                                                                           
  Microsoft.AspNetCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]        
  Microsoft.AspNetCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]         
  Microsoft.AspNetCore.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]        
  Microsoft.AspNetCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]         
  Microsoft.AspNetCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]         
  Microsoft.NETCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]              
  Microsoft.NETCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]               
  Microsoft.NETCore.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]              
  Microsoft.NETCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]               
  Microsoft.NETCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]               
  Microsoft.WindowsDesktop.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] 
  Microsoft.WindowsDesktop.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] 
  Microsoft.WindowsDesktop.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] 

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

skeeler avatar Feb 10 '22 23:02 skeeler

I'm going to close this because it's an issue for the product group to sort out. I created and linked to an issue over there ... almost 2 years ago :( hopefully it's gotten a bit better now.

adegeo avatar Aug 07 '24 00:08 adegeo