Muneeb Hassan
Muneeb Hassan

Reputation: 125

Need to install all packages at once for a solution in vs 2015 using nuget

Install multiple packages at once using some nuget commands.

In my solution I have much projects and it takes a lot of time to install each package via gui, need help to install all of those with a single command.

Upvotes: 0

Views: 751

Answers (2)

Jeff Fritz
Jeff Fritz

Reputation: 9861

The Update-Package command will install and update all packages in all projects:

http://docs.nuget.org/Consume/Package-Manager-Console-PowerShell-Reference#update-package

You can provide additional attributes into this command and it will update packages appropriately.

Upvotes: 1

mikeyq6
mikeyq6

Reputation: 1148

You could write a powershell script to do it. ie. something like:

Install-Package package1 -ProjectName project
Install-Package package2 -ProjectName project
Install-Package package3 -ProjectName project

Then you could just right-click on the script in Windows explorer and run it.

Upvotes: 0

Related Questions