.net core 我为dotnet CLI安装了一个工具,为什么命令工具列表没有显示它?

.net core 我为dotnet CLI安装了一个工具,为什么命令工具列表没有显示它?,.net-core,command-line-interface,dotnet-cli,.net Core,Command Line Interface,Dotnet Cli,请看屏幕截图,以便更好地理解我的问题 为什么未列出dotnetsay工具 为什么没有列出dotnetsay工具 请注意,dotnet工具列表命令确实有助于列出当前目录下可用的所有本地工具,如果将dotnetsay安装为全局工具,则可以使用以下命令列出所有全局工具 测试结果 有关dotnet工具列表命令的更多信息,请检查: 为什么没有列出dotnetsay工具 请注意,dotnet工具列表命令确实有助于列出当前目录下可用的所有本地工具,如果将dotnetsay安装为全局工具,则可以使用以下命令

请看屏幕截图,以便更好地理解我的问题

为什么未列出
dotnetsay
工具

为什么没有列出dotnetsay工具

请注意,
dotnet工具列表
命令确实有助于列出当前目录下可用的所有本地工具,如果将
dotnetsay
安装为全局工具,则可以使用以下命令列出所有全局工具

测试结果

有关
dotnet工具列表
命令的更多信息,请检查:

为什么没有列出dotnetsay工具

请注意,
dotnet工具列表
命令确实有助于列出当前目录下可用的所有本地工具,如果将
dotnetsay
安装为全局工具,则可以使用以下命令列出所有全局工具

测试结果

有关
dotnet工具列表
命令的更多信息,请检查:


要显示您已安装的工具,请使用以下方法之一:

dotnet tool list -g
dotnet tool list --global
dotnet tool list --tool-path C:\Users\samue
练习这些命令

案例安装全局:

dotnet tool uninstall dotnetsay --global
dotnet tool list

dotnet tool install dotnetsay --global
dotnet tool list --global
dotnetsay
机箱安装本地:

mkdir C:\foo
dotnet tool uninstall dotnetsay --tool-path C:\foo
dotnet tool list --tool-path C:\foo

dotnet tool install dotnetsay --tool-path c:\foo
dotnet tool list --tool-path C:\foo
cd /d C:\foo
dotnetsay
参考:

  • dotnet工具安装
  • dotnet工具列表

要显示您安装的工具,请使用以下方法之一:

dotnet tool list -g
dotnet tool list --global
dotnet tool list --tool-path C:\Users\samue
练习这些命令

案例安装全局:

dotnet tool uninstall dotnetsay --global
dotnet tool list

dotnet tool install dotnetsay --global
dotnet tool list --global
dotnetsay
机箱安装本地:

mkdir C:\foo
dotnet tool uninstall dotnetsay --tool-path C:\foo
dotnet tool list --tool-path C:\foo

dotnet tool install dotnetsay --tool-path c:\foo
dotnet tool list --tool-path C:\foo
cd /d C:\foo
dotnetsay
参考:

  • dotnet工具安装
  • dotnet工具列表