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 content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

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.


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2022-10-02T13:15:17+00:00) » How to install a package into all projects of a solution. Retrieved from https://www.scien.cx/2011/02/26/how-to-install-a-package-into-all-projects-of-a-solution/.
MLA
" » How to install a package into all projects of a solution." Posts on LINQ to Fail | Sciencx - Saturday February 26, 2011, https://www.scien.cx/2011/02/26/how-to-install-a-package-into-all-projects-of-a-solution/
HARVARD
Posts on LINQ to Fail | Sciencx Saturday February 26, 2011 » How to install a package into all projects of a solution., viewed 2022-10-02T13:15:17+00:00,<https://www.scien.cx/2011/02/26/how-to-install-a-package-into-all-projects-of-a-solution/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » How to install a package into all projects of a solution. [Internet]. [Accessed 2022-10-02T13:15:17+00:00]. Available from: https://www.scien.cx/2011/02/26/how-to-install-a-package-into-all-projects-of-a-solution/
CHICAGO
" » How to install a package into all projects of a solution." Posts on LINQ to Fail | Sciencx - Accessed 2022-10-02T13:15:17+00:00. https://www.scien.cx/2011/02/26/how-to-install-a-package-into-all-projects-of-a-solution/
IEEE
" » How to install a package into all projects of a solution." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2011/02/26/how-to-install-a-package-into-all-projects-of-a-solution/. [Accessed: 2022-10-02T13:15:17+00:00]
rf:citation
» How to install a package into all projects of a solution | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2011/02/26/how-to-install-a-package-into-all-projects-of-a-solution/ | 2022-10-02T13:15:17+00:00
https://github.com/addpipe/simple-recorderjs-demo