Open xCyborg opened 1 year ago
I'm having a heck of a time (at least on mac) understanding how I'm supposed to remove multiple versions in one fell swoop.
As a for instance, the output of ./dotnet-core-uninstall
is:
This tool cannot uninstall versions of the runtime or SDK that are installed using zip/scripts. The versions that can be uninstalled with this tool are:
.NET Core SDKs: 8.0.203 (x64) [Cannot uninstall version 8.0.0 and above]
6.0.417 (x64) [Used by Visual Studio for Mac. Specify individually or use —-force to remove] 6.0.408 (x64)
5.0.400 (x64)
5.0.101 (x64)
5.0.100-rc.2.20479.15 (x64)
3.1.412 (x64)
3.1.404 (x64)
3.1.302 (x64)
3.1.301 (x64)
3.1.100 (x64)
3.0.101 (x64)
3.0.100 (x64).NET Core Runtimes: 8.0.3 (x64) [Cannot uninstall version 8.0.0 and above]
6.0.25 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove] 6.0.16 (x64)
5.0.9 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove] 5.0.1 (x64)
5.0.0-rc.2.20475.5 (x64)
5.0.0-rc.2.20475.17 (x64)
3.1.6 (x64)
3.1.5 (x64)
3.1.18 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove] 3.1.10 (x64)
3.1.0 (x64)
3.0.1 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove] 3.0.0 (x64)
2.1.22 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove] 2.1.20 (x64)
2.1.14 (x64)
2.1.13 (x64)
And the options I have at the command line are:
Commands: list List .NET Core SDKs or Runtimes that can be removed with this tool. dry-run, whatif
Display .NET Core SDKs and Runtimes that will be removed. remove Remove the specified .NET Core SDKs or Runtimes.
the help doesn't specify if any particular syntax would work; nor does it show me the "all-lower-patches" option referenced elsewhere.
Admittedly, this is the first time I'm using this tool; and I prefer to do my development on a mac; so conceivably I'm looking for an easy way to remove the 20 or so runtimes I have with some sort of command like the following:
dotnet-core-uninstall remove "<8.0.0"
.
@gortok You can see the options for the remove
command with:
dotnet-core-uninstall remove --help
Would it hurt MSFT to make a GUI utility or integrate uninstall into their dotnet rubbish? It almost sounds like deliberate.