-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make the toolsResolverCache path overridable using an environment variable. Fixes #11432. #43576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,7 +99,7 @@ They\[cq]re stored in the same way as global tools: an executable binary with th | |
| .SS Local tools | ||
| .PP | ||
| Local tools are stored in the NuGet global directory, whatever you\[cq]ve set that to be. | ||
| There are shim files in \f[V]$HOME/.dotnet/toolResolverCache\f[R] for each local tool that point to where the tools are within that location. | ||
| There are shim files in \f[V]$HOME/.dotnet/toolResolverCache\f[R] for each local tool that point to where the tools are within that location (this path can be overridden with the \f[V]DOTNET_TOOLS_RESOLVER_CACHE_FOLDER\f[R] environment variable). | ||
|
||
| .PP | ||
| References to local tools are added to a \f[I]dotnet-tools.json\f[R] file in a \f[I].config\f[R] directory under the current directory. | ||
| If a manifest file doesn\[cq]t exist yet, create it by using the \f[V]--create-manifest-if-needed\f[R] option or by running the following command: | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -40,7 +40,9 @@ public static string WindowsNonExpandedToolsShimPath | |||||
| public static string DotnetUserProfileFolderPath => | ||||||
| Path.Combine(DotnetHomePath, DotnetProfileDirectoryName); | ||||||
|
|
||||||
| public static string ToolsResolverCachePath => Path.Combine(DotnetUserProfileFolderPath, ToolsResolverCacheFolderName); | ||||||
| public static string ToolsResolverCachePath => | ||||||
| Environment.GetEnvironmentVariable("DOTNET_TOOLS_RESOLVER_CACHE_FOLDER") ?? | ||||||
| Path.Combine(DotnetUserProfileFolderPath, ToolsResolverCacheFolderName); | ||||||
|
||||||
| Path.Combine(DotnetUserProfileFolderPath, ToolsResolverCacheFolderName); | |
| Path.Combine(DotnetUserProfileFolderPath, ToolsResolverCacheFolderName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to repository guidelines, files under documentation/manpages/sdk are generated and should not be manually modified. These changes should be made to the source documentation files instead, and the manpages should be regenerated from those sources.