I want to create a Custom Scaffolder that uses arbitrary PowerShell logic. It can render T4 templates (multiple ones if I want), with the result being output:
- As a new file in your project
- as a new code block inserted into an existing class
- my PowerShell logic can use Visual Studio’s “code model” API to manipulate files and code elements in other arbitrary ways.
How to Customize T4 Scaffolding With PowerShell?
From http://blog.stevensanderson.com/2011/04/07/mvcscaffolding-creating-custom-scaffolders/: