How to install a package into all projects of a solution

This is a script that I’ve been keeping in my toolbox since NuGet was first released.
Ever now and then I need to do an install of a package across all projects in a solution. log4net is an example of the kind of thing you’d want to globall…

This is a script that I’ve been keeping in my toolbox since NuGet was first released. Ever now and then I need to do an install of a package across all projects in a solution. log4net is an example of the kind of thing you’d want to globally install, so is Autofac. Well here’s a script to run from the Package Management Console: Get-Project -All | Install-Package packageName This is also available as a gist.
Print Share Comment Cite Upload Translate
CITATION GOES HERE CITATION GOES HERE
Select a language: