默认情况下,dotnet工具存储在哪里?

时间:2019-01-08 09:59:46

标签: .net-core

我正在使用Windows 10和dotnet 2.2。当我安装这样的工具时:

dotnet tool install -g mydotnet-tool

dotnet将该工具放在哪里?我知道您可以在安装工具时指定路径,但是我正在寻找默认的全局dotnet工具路径。

1 个答案:

答案 0 :(得分:1)

根据docs,默认的全局安装路径为:

  • Windows-%USERPROFILE%\.dotnet\tools
  • Linux / macOS-$HOME/.dotnet/tools

在Windows中,这意味着完整路径将类似于:

C:\Users\[User]\.dotnet\tools