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.
In its role as a public host, NuGet itself maintains the central repository of over 100,000 unique packages at nuget.org.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With