dotnet / cli-lab

A guided tool will be provided to enable the controlled clean up of a system such that only the desired versions of the Runtime and SDKs remain.
MIT License
625 stars 56 forks source link

[NETSDKE2E][MAC] The version of .NET core runtimes are incorrect in dotnet-core-uninstall list when installing one arm SDK and one x64 runtime on M1 #295

Open v-xiaofchen opened 7 months ago

v-xiaofchen commented 7 months ago

To Reproduce 1.Prepare a clean M1 2.install dotnet-core-uninstall(1.7.0) from tar

  1. Use the following commands to install the tool:
mkdir -p ~/dotnet-core-uninstall
tar -zxvf dotnet-core-uninstall.tar.gz -C ~/dotnet-core-uninstall
cd ~/dotnet-core-uninstall
./dotnet-core-uninstall list

4.Install 8.0.3 osx-x64 + 8.0.204(osx-arm64) runtime from https://dotnet.microsoft.com/en-us/download/dotnet/8.0

  1. Run "./dotnet-core-uninstall list" 6.check the output of dotnet-core-uninstall list

Expected Result: The version of .NET core runtimes are correct in dotnet-core-uninstall list when installing one arm SDK and one x64 runtime on M1.

Actual Result: The version of .NET core runtimes are incorrect in dotnet-core-uninstall list when installing one arm SDK and one x64 runtime on M1

Install 8.0.3 osx-x64 and dotnet --info image Then install 8.0.204(osx-arm64) and observer the dotnet-core-uninstall list output The version in dotnet-core-uninstall list is 8.0.4(x64) rather than 8.0.3(x64) image

v-xiaofchen commented 7 months ago

Another scene, when install mac-x64 like 8.0.203(osx-x64) on M1,it only disply the version of .NET in dotnet-core-uninstall list output,,not show the version of .NET core runtimes, is it expected? image

yinjiehe01 commented 1 month ago

still repro on uninstall tool 1.7.550802 Image Image