Venkata N Bhupathi
Venkata N Bhupathi

Reputation: 417

Tool 'dotnet-try' failed to install

Trying to install dotnet-try global tool from the command prompt on Windows by running dotnet tool install -g dotnet-try but failed with the following error.

Failed to create shell shim for tool 'dotnet-try': Command 'dotnet-try' conflicts with an existing command from another tool. Tool 'dotnet-try' failed to install.

Any help would be appreciated.

Upvotes: 2

Views: 1752

Answers (2)

Bravo Yeung
Bravo Yeung

Reputation: 9850

Update to now, the command "dotnet tool install -g dotnet-try" cannot be used.

The command to install latest version of dotnet-try is below:

dotnet tool install -g --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" Microsoft.dotnet-try

You can run below command to uninstall old version first:

dotnet tool uninstall -g dotnet-try

Then run:

dotnet tool install -g --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" Microsoft.dotnet-try

If report Nu1301 error, add --ignore-failed-sources to the end of last command.

References:

https://github.com/dotnet/try/blob/main/DotNetTryLocal.md

https://github.com/dotnet/try/issues/938#issuecomment-1023604536

Upvotes: 0

Venkata N Bhupathi
Venkata N Bhupathi

Reputation: 417

The following are the latest commands to install, uninstall and update dotnet-try

To Install

> dotnet tool install -g Microsoft.dotnet-try

To Uninstall

> dotnet tool uninstall -g Microsoft.dotnet-try

To Update

> dotnet tool update -g Microsoft.dotnet-try

Upvotes: 3

Related Questions