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 Updates
APA

Posts on LINQ to Fail | Sciencx (2011-02-26T00:00:00+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 ,<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 ]. 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 . 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: ]
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/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.