Journal: Software Development

Email: mail@appsoftware.com

Software development notes and articles

A journal for sharing all things software development related


NuGet File Locations

Mon, 12 Aug 2019 18:36 UTC

NuGet directory and file locations across Linux, Mac and Windows operating systems.

NuGet Cache

Stores downloaded NuGet packages (.nupkg).

Mac

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

Windows

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

Linux

~/.local/share/NuGet/Cache
~/.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

Linux

~/.config/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

Inside this directory there may be a NuGet.Config file or subdirectories for IDE specific NuGet.Config files. The files are checked for in the following order:

%ProgramData%\NuGet\Config\IDE\Version\SKU\*.config
%ProgramData%\NuGet\Config\IDE\Version\*.config
%ProgramData%\NuGet\Config\IDE\*.config
%ProgramData%\NuGet\Config\*.config

Linux

Source:

https://lastexitcode.com/projects/NuGet/FileLocations/

The information on this site is provided “AS IS” and without warranties of any kind either express or implied. To the fullest extent permissible pursuant to applicable laws, the author disclaims all warranties, express or implied, including, but not limited to, implied warranties of merchantability, non-infringement and suitability for a particular purpose.