MvcScaffolding and CI-Server

Aug 19, 2011 at 12:24 PM


I would like to call the scaffold-command on my jenkins continuous integration server before the project is built.

(I don't want to have the generated code in my subversion repository). There is not VS on the ci server installed.

Is there a way to run the "scaffold"-command via command line or powershell outside from VS?

Aug 19, 2011 at 1:48 PM

The scaffolding uses a module that is loaded in vs.  You should be able to load the same module outside of VS. Look at \T4Scaffolding.0.9.8\tools\init.ps1 for how that module is loaded.  You might be able to just include the init.ps1 file and call it from your script to load the module.


Aug 22, 2011 at 7:13 AM



thank you for your idea. I tried this, but after adding the T4Scaffolding.dll, the program complains that the cmdlet Get-Project is not found. Do I have to add the nuget assemblies as well? Where do I find them?