The Visual Studio Package Manager (NuGet 3.x+) and the dotnet tool store copies of downloaded packages in this cache (saved as. The environment variable takes precedence over the configuration setting.
When using the nfig, packages are installed to the global-packages folder, then copied into the project's packages folder. Projects using the PackageReference format always use packages directly from this folder. Each package is fully expanded into a subfolder that matches the package identifier and version number. The global-packages folder is where NuGet installs any downloaded package. Whenever you install, update, or restore a package, NuGet manages packages and package information in several folders outside of your project structure: Name