Skip to content

How to get nuget not try to access my ~/.nuget? #12587

Answered by baronfel
WhiteBlackGoose asked this question in Q&A
Discussion options

You must be logged in to vote

@WhiteBlackGoose a few ways: https://learn.microsoft.com/en-us/nuget/consume-packages/managing-the-global-packages-and-cache-folders

  • Override using the NUGET_PACKAGES environment variable,
  • the globalPackagesFolder or repositoryPath configuration settings (when using PackageReference and packages.config, respectively), or the RestorePackagesPath MSBuild property (MSBuild only). The environment variable takes precedence over the configuration setting.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WhiteBlackGoose
Comment options

Answer selected by WhiteBlackGoose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants