If you try and create an MVC3 project, you’ll see that you have an ability to add Controller or View with rc. And context menu you get on Controller folder with rc will magically suggest to add Controller while on the Views you’ll be suggested to add View.
As I understand, to achieve this I need to bind somehow 4 things. Project template, Item template, T4 templates (used to generate Contoller class or View) and a wizard lieing between T4 and Intem template (within WizardExtension section in Item Template).
How to have all these goods MVC3 project has for a custom template? I couldn’t dig how to bind those 4 things. Maybe somewhere in msdn there is an article I missed (I looked at “Visual Studio Templates” but that did not help much in understanding how to get to my goal). Or maybe someone had a nice experience doing something similar.
P.s. I’m using VS 2010 SDK SP1 Experimental Instance