Friday, July 25, 2014

Updating a large Soloution with lots fo projects wtih Nuget? How to remove the suq! (Nuget Commands to Remember #2)





Say you've got a large *.sln and it has lots of *.csproj s in it... and you made a fundamental change to nugget packages...


Updating it manually package after package and project after project, is uber painful... aka "The Suq"
I found several neat commands in NuGet that work across solutions Here: StackOverflow
but this is my favorite... In vs2013 (I have not tried it in earlier version of NuGet) at the
PackageManagerConsole Prompt type this
Update-Package
Then hit <return>, it will go through your packages, one by one, checking to see if it needs updating in EACH Solution.



Let it chew and your entire SLN is updated...
Man that ROCKS...
Hope you enjoy it.

No comments:

Post a Comment