Is there any way to make MVC Scaffolding available across multiple solutions?

Apr 7, 2013 at 10:02 PM
Say you have 20 solutions and you would rather not install MVC Scaffolding in all 20 solutions. Is there a way to use the Nuget_Profile.ps1 file ($profile) to make available MVC Scaffolding when one needs it? Like a function that would load the DLLs into Powershell and call the Init.ps1 or other powershell scripts from the Nuget package?

function Load-MvcScaffolding()
[Reflection.Assembly]::LoadFrom("c:\scaffolding\Scaffolding.dll") | Out-Null
& c:\scaffolding\Init.ps1

Does one need to copy the Scaffolders, like Action, ActionUnitTest, etc. any place special?

Another option is just a method to add a temporary library project, install MvcScaffolding from Nuget and then once finished, they could just delete the temp project.