Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Nuget Packages globally

Tags:

Is there a way to install Nuget Packages globally?

I have a Nuget Package that I would like to use across multiple projects without having to download for each project?

Each project will have its own solution and it will be independent of other project.

like image 802
Ishan Avatar asked Nov 15 '15 01:11

Ishan


People also ask

Are NuGet packages Global?

The global-packages folder is where NuGet installs any downloaded package. Each package is fully expanded into a subfolder that matches the package identifier and version number. Projects using the PackageReference format always use packages directly from this folder.

How do I change NuGet package location?

Open %AppData%\NuGet folder, open existing NuGet. Config file. Edit repositoryPath key and set new destination.


Video Answer


1 Answers

NuGet in its current version uses a global package cache.

Have a look at the documentation to find out where it is on your machine. You should also poke around the NuGet configuration file documentation for how to update the global cache location.

like image 121
René Schindhelm Avatar answered Sep 24 '22 18:09

René Schindhelm