dotnet工具在全局可用,但无法运行命令。

huangapple go评论55阅读模式
英文:

dotnet tool available globally but can't run command

问题

Running dotnet v7

dotnet --version
# => 7.0.100

我安装了dotnet-warp,使用以下命令

dotnet tool install --global dotnet-warp

我可以运行dotnet tool list -g,结果如下

Package Id Version Commands
dotnet-warp 1.1.0 dotnet-warp

然而,当我运行dotnet-warp --version时,我收到以下错误消息

zsh: 找不到命令: dotnet-warp

我们的团队对.NET不是很精通,但偶尔需要维护这个遗留项目,所以我希望有些地方可能我遗漏了。

英文:

Running dotnet v7

dotnet --version
# => 7.0.100

I installed dotnet-warp using the command

dotnet tool install --global dotnet-warp

I am able to run dotnet tool list -g with the following result

Package Id Version Commands
dotnet-warp 1.1.0 dotnet-warp

However, when I run dotnet-warp --version I get the following error

> zsh: command not found: dotnet-warp

Our team is not proficient in .NET, but we occasionally have to maintain this legacy project so I hope there is something I am missing here.

Expected to execute command after verifying it was installed in the global tool list.

答案1

得分: 1

需要将这个工具添加到我的路径中!

英文:

Needed to add the tool to my path!

huangapple
  • 本文由 发表于 2023年3月3日 23:00:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/75628659.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定