Skip to content

Instantly share code, notes, and snippets.

@dhei
Last active August 28, 2017 02:48
Show Gist options
  • Save dhei/4e2c710e5c576e1fe5aaa07549b0ab93 to your computer and use it in GitHub Desktop.
Save dhei/4e2c710e5c576e1fe5aaa07549b0ab93 to your computer and use it in GitHub Desktop.
NuGet location and configuration cheatsheet

NuGet Cache

Stores downloaded NuGet packages (.nupkg).

Mac

~/.local/share/NuGet/Cache ~/.nuget/packages

Windows

%LocalAppData%\NuGet\Cache %UserProfile%.nuget\packages

NuGet Configuration

The NuGet.Config file stores user defined NuGet package sources, credentials and proxy settings. The default location for this file is:

Mac

~/.config/NuGet/NuGet.Config

Windows

%AppData%\NuGet\NuGet.Config

Machine Wide NuGet Configuration

Machine wide configurations are used to define NuGet package sources specific to a machine or a particular IDE, such as Visual Studio.

Mac

Windows %ProgramData%\NuGet\Config

(credit from Matt Ward's blog http://lastexitcode.com/projects/NuGet/FileLocations/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment