简体   繁体   中英

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM