cli-lab icon indicating copy to clipboard operation
cli-lab copied to clipboard

Support uninstallation of latest preview versions

Open pjcollins opened this issue 2 years ago • 8 comments

We have some scenarios where it could be useful to uninstall .NET previews from the latest band (currently 8.0) as we move from preview to preview, however this does not appear to be supported:

./dotnet-core-uninstall list  

.NET Core SDKs:
  8.0.100-preview.7.23376.3  (arm64)  [Cannot uninstall version 8.0.0 and above]   

I am trying to better understand this restriction. Is this not allowed because the latest SDK can have a lot of churn in between previews and the behavior of the tool may be unreliable?

Would be reasonable to add a command line param that would let users ignore this upper limit? https://github.com/dotnet/cli-lab/blob/0eab6c3a145e91f1ce16043ec63d9dfe2ac702ea/src/dotnet-core-uninstall/Shared/VSVersioning/VisualStudioSafeVersionsExtractor.cs#L16

pjcollins avatar Aug 03 '23 15:08 pjcollins

A parameter to ignore the 'safe' limits might be interesting - really we have a roughly-yearly process of bumping this allowed upper limit ourselves. @joeloff might be time to do so again for 8.0?

baronfel avatar Aug 03 '23 15:08 baronfel

Quick comment that this issue still persists for the latest release

ef4203 avatar Sep 22 '23 08:09 ef4203

Found this issue after getting an error while trying to uninstall .Net 8 RC 1 (8.0.100-rc.1.23463.5) after the RC2 release.

jeroenhabets avatar Oct 11 '23 07:10 jeroenhabets

It would be good to add support for .NET 8 previews. My machines start to get polluted by preview bits.

mauroservienti avatar Oct 11 '23 12:10 mauroservienti

I think this should be fixed for .NET 8 with https://github.com/dotnet/cli-lab/pull/268.

I also took an initial stab at allowing the upper version to be ignored for future versions in https://github.com/dotnet/cli-lab/pull/269, though this still needs some tests.

pjcollins avatar Oct 11 '23 23:10 pjcollins

Any updates on .NET 8 support?

dennisrahmen avatar Dec 04 '23 21:12 dennisrahmen

Apologies, to nag but... Any updates on .NET 8 support?

What's holding this back? Can we help?

jeroenhabets avatar Feb 15 '24 17:02 jeroenhabets

See also issues #273 and #276

jrdodds avatar Feb 25 '24 16:02 jrdodds