Last Updated: February 25, 2016
· alanta

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


1 Response
Add your response

As this code was too slow for me I made a faster version:

over 1 year ago ·