Open nickgrygoriev opened 1 year ago
Same here...
C:\Program Files (x86)\dotnet-core-uninstall>dotnet-core-uninstall list
This tool cannot uninstall versions of the runtime or SDK that are
Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.ArgumentException: An item with the same key has already been added. Key: 1.0.0 (x64)
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable
1 source, Func2 keySelector, Func
2 elementSelector, IEqualityComparer1 comparer) at Microsoft.DotNet.Tools.Uninstall.Shared.VSVersioning.VisualStudioSafeVersionsExtractor.GetReasonRequiredStrings(IEnumerable
1 allBundles) in //src/dotnet-core-uninstall/Shared/VSVersioning/VisualStudioSafeVersionsExtractor.cs:line 118
at Microsoft.DotNet.Tools.Uninstall.Shared.Commands.ListCommandExec.GetFilteredBundlesWithRequirements(IEnumerable1 bundles, IEnumerable
1 supportedBundleTypes, ParseResult parseResult) in //src/dotnet-core-uninstall/Shared/Commands/ListCommandExec.cs:line 76
at Microsoft.DotNet.Tools.Uninstall.Shared.Commands.ListCommandExec.Execute(IEnumerable1 bundles, IEnumerable
1 supportedBundleTypes) in //src/dotnet-core-uninstall/Shared/Commands/ListCommandExec.cs:line 40
at Microsoft.DotNet.Tools.Uninstall.Shared.Commands.ListCommandExec.Execute(IBundleCollector bundleCollector) in //src/dotnet-core-uninstall/Shared/Commands/ListCommandExec.cs:line 25
at Microsoft.DotNet.Tools.Uninstall.Shared.Configs.CommandLineConfigs.<>cDisplayClass40_0.<.cctor>b_4() in //src/dotnet-core-uninstall/Shared/Configs/CommandLineConfigs.cs:line 235
at Microsoft.DotNet.Tools.Uninstall.Shared.Exceptions.ExceptionHandler.<>cDisplayClass0_0.
C:\Program Files (x86)\dotnet-core-uninstall>dotnet-core-uninstall --version 1.6.0
Having the following list of sdks:
After running
dotnet-core-uninstall list
the following exception is being thrown:dotnet-core-uninstall --version 1.6.0