Last Updated: February 25, 2016
·
1.454K
· 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

Source: https://nuget.codeplex.com/workitem/3621

1 Response
Add your response

As this code was too slow for me I made a faster version: https://coderwall.com/p/gvrn4w

over 1 year ago ·