Wednesday, 8 February 2012

How to update references to a 3rd party assembly in all the projects in the solution?

Let's say you have a 3rd party assembly referenced in many projects in your solution. Once a new version of the 3rd party assembly is released, you probably would like to update the references in all your projects in a solution to the new version.

Are you using NuGet to update 3rd party libraries?
If the answer no, install Extension for Visual Studio RIGHT NOW from NuGet

Copy the following script to the root directory of your solution

Navigate to View -> Other Windows -> Package Management Console

Run the following command

PM> .\Upgrade-Package.ps1 -PackageID:log4net