Install multiple NuGet packages at once

sighol

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.

Wiebe Tijsma

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to install multiple gulp packages at once using node?

How do I include JavaScript packages I install from Nuget?

How to install multiple python packages at once using pip

Load multiple packages at once

How do I get NuGet to install/update all the packages in the packages.config?

Ansible: install multiple Python packages on a single session

Can't install NuGet-Packages (Xamarin Android project)

Nuget.Server can list packages but 404's on package install

Install multiple packages simultaneously

Release definition to publish nuget packages for multiple artifacts

When added to solution NuGet packages restore/install to multiple locations

How to update multiple packages to a desired version in single nuget cli command?

How to install multiple yarn packages using `add`?

Nuget trying to install a ton of dependencies on certain packages

Slow nuget vs2017 install packages android

can't update or install any nuget packages in vs 2017

Install nuget packages based on compiler flags / Target framework

Managing Nuget packages for C# project present in multiple solutions

Cannot modify NuGet packages

Installing multiple nuget packages by manually editing the packages.config

can I install multiple ubuntu distros at once?

Why does NuGet install two copies of JavaScript packages?

yum install multiple packages including a groupisntall

yum install multiple packages requiring all for success

How to manage Nuget Packages used more than once

apt-file regex: find multiple packages at once using or

Testing nuget packages locally

Error Occured when trying to install NuGet Packages

Cloudformation init - install multiple packages