Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are dotnet tools stored by default?

Tags:

.net-core

I am using Windows 10 and and dotnet 2.2. When I install a tool like this:

dotnet tool install -g mydotnet-tool

Where does dotnet put this tool? I know you can specify the path on installing a tool but I am looking for the default global dotnet tool path.

like image 764
Dai Bok Avatar asked Jan 08 '19 09:01

Dai Bok


2 Answers

According to the docs, the default global installation paths are:

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

In Windows, this means the full path will be something like:

C:\Users\[User]\.dotnet\tools
like image 116
Kirk Larkin Avatar answered Nov 12 '22 03:11

Kirk Larkin


Global Tools

According to the docs, the default global installation paths are:

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

In Windows, this means the full path will be something like:

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

Local Tools

Local tools are stored in the global NuGet package folder.

  • Windows: %USERPROFILE%\.nuget\packages
  • Mac/Linux: ~/.nuget/packages

In Windows, this means the full path will be something like:

C:\Users\[User]\.nuget\packages
like image 1
Jeff Walker Code Ranger Avatar answered Nov 12 '22 04:11

Jeff Walker Code Ranger