wtobfg
Last Updated: February 25, 2016
·
886
· alanta
47ab6b5f378e25e3b3ecd2e215ec3c83

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

Say Thanks
Respond

1 Response
Add your response

16933
Fox in the snow

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

over 1 year ago ·