Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet update_package in entire solution

Tags:

nuget

Maybe I am missing something very simple but how do you update a package in multiple projects in a solution?

like image 786
jparram Avatar asked Jun 08 '11 12:06

jparram


People also ask

How do I refresh all NuGet packages?

Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.


4 Answers

You can now "Manage NuGet Packages for Solution ..." when you right-click the project.

like image 138
xanadont Avatar answered Oct 13 '22 11:10

xanadont


Old question, but for those that are interested, works out of the box now with the 'Update-Package' command in the Package Manager Console

like image 28
Frep D-Oronge Avatar answered Oct 13 '22 10:10

Frep D-Oronge


Install http://nuget.org/List/Packages/NuGetPackageUpdater

PM> Install-Package NuGetPackageUpdater

Then just type (in the command console, while the solution in question is opened)

PM> Update-Package

Otherwise there's currently a workitem to bake this functionality directly into NuGet with something like an Update-Package -all flag. Ref: http://nuget.codeplex.com/workitem/431

like image 32
Chris B Avatar answered Oct 13 '22 09:10

Chris B


Currently in 1.3 there is no way to do this. This feature will be in 1.4 please see: http://nuget.codeplex.com/workitem/431 If you would like to preview this feature you can install a build form out CI machine see: http://docs.nuget.org/docs/start-here/installing-nuget#Installing_a_CI_build

like image 40
Matthew M. Osborn Avatar answered Oct 13 '22 10:10

Matthew M. Osborn