Update all Nuget packages in a solution matched by name
In large .NET projects it's common to use Nuget to share binary dependencies. Updating a bunch of these packages in VisualStudio can be really tedious.
However, if you name your packages consitently, Powershell can help out. Enter the following in the package manager console to update all packages with a name starting with 'MyCompany':
get-project -all | get-package | ?{ $_.Id -like 'MyCompany*' } | update-package
Written by Marnix van Valen
Related protips
1 Response
As this code was too slow for me I made a faster version: https://coderwall.com/p/gvrn4w
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Powershell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#