工具“dotnet-try”安装失败

问题描述 投票:0回答:2

尝试通过运行 dotnet tool install -g dotnet-try 在 Windows 上从命令提示符安装

dotnet-try
全局工具,但失败并出现以下错误。

无法为工具“dotnet-try”创建 shell shim:命令“dotnet-try”与另一个工具的现有命令冲突。 工具“dotnet-try”安装失败。

如有任何帮助,我们将不胜感激。

.net .net-core dotnet-tool
2个回答
3
投票

以下是安装、卸载更新

dotnet-try

的最新命令

安装

> dotnet tool install -g Microsoft.dotnet-try

卸载

> dotnet tool uninstall -g Microsoft.dotnet-try

更新

> dotnet tool update -g Microsoft.dotnet-try

0
投票

更新到现在,命令“dotnet tool install -g dotnet-try”无法使用。

安装 dotnet-try 最新版本的命令如下:

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

您可以运行以下命令先卸载旧版本:

dotnet tool uninstall -g dotnet-try

然后运行:

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

参考资料:

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

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

© www.soinside.com 2019 - 2024. All rights reserved.