Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install multiple NuGet packages at once

Is it possible to use nuget to install multiple packages at once? That is, both download all nuget packages listed in packages.config and add the packages to the .csproj file.

What I do now is to use the NuGet Package Manager in Visual Studio and install each package one by one, but is there an easier way?

EDIT: This question is not solved by How do I get NuGet to install/update all the packages in the packages.config? as it only downloads and installes the packages to the packages directory, and does not change the project files.

If I run

nuget install packages.config

It will install all packages in the packages.config file, but not update the project file.

like image 792
sighol Avatar asked Dec 14 '15 11:12

sighol


People also ask

How many NuGet packages are there?

In its role as a public host, NuGet itself maintains the central repository of over 100,000 unique packages at nuget.org.


1 Answers

Could you try to run this from the package manager console in Visual Studio:

Update-Package –reinstall

That should fix missing assembly references in your *.csproj files, if the packages are already in your packages.config.

like image 122
Wiebe Tijsma Avatar answered Sep 23 '22 00:09

Wiebe Tijsma