Hi Greg, Just looking through the source of that tool opens the possibility of finding the locations in Windows (registry etc) where these old ones may be found (e.g. https://github.com/dotnet/cli-lab/blob/main/src/dotnet-core-uninstall/Windows/RegistryQuery.cs )
I think looking through the code for *dotnet --info *might give you all the locations, and perhaps together will give you enough to rustle up a script that removes them effectively. regards, Preet, in Auckland NZ On Fri, 5 Nov 2021 at 00:27, Greg Keogh <[email protected]> wrote: > Does anyone know how to uninstall old .NET Runtimes listed via via dornet > --info (see below)? My work PC has 14 old ones, and my laptop has double > that. I tried using the .NET Uninstall Tool > <https://docs.microsoft.com/en-us/dotnet/core/additional-tools/uninstall-tool?tabs=windows>, > but it only lists the latest versions that I want to keep. None of the old > ones are listed and uninstall can't see them. > > *Greg K* > > .NET runtimes installed: > Microsoft.AspNetCore.All 2.1.30 [C:\Pro > Microsoft.AspNetCore.App 2.1.30 [C:\Pro > Microsoft.AspNetCore.App 3.1.18 [C:\Pro > Microsoft.AspNetCore.App 3.1.20 [C:\Pro > Microsoft.AspNetCore.App 5.0.4 [C:\Prog > Microsoft.AspNetCore.App 5.0.9 [C:\Prog > Microsoft.AspNetCore.App 5.0.11 [C:\Pro > Microsoft.NETCore.App 2.1.30 [C:\Progra > Microsoft.NETCore.App 3.1.18 [C:\Progra > Microsoft.NETCore.App 3.1.20 [C:\Progra > Microsoft.NETCore.App 5.0.4 [C:\Program > Microsoft.NETCore.App 5.0.5 [C:\Program > Microsoft.NETCore.App 5.0.9 [C:\Program > Microsoft.NETCore.App 5.0.11 [C:\Progra > Microsoft.WindowsDesktop.App 3.1.18 [C: > Microsoft.WindowsDesktop.App 3.1.20 [C: > Microsoft.WindowsDesktop.App 5.0.4 [C:\ > Microsoft.WindowsDesktop.App 5.0.5 [C:\ > Microsoft.WindowsDesktop.App 5.0.9 [C:\ > Microsoft.WindowsDesktop.App 5.0.11 [C: >
