4

I want to implement new T4 templates which should appear under Scaffold options in Add New Controller Dialog.

I have tried adding a new View tt template.I was able to add it. I need a reference where I can get basic information on how to create a new Controller template rather than modifying existing one.

Thanks Patil

Patil
  • 173
  • 1
  • 2
  • 6
  • Despite articles like [this by Scott Hanselman on creating custom templates](http://www.hanselman.com/blog/ModifyingTheDefaultCodeGenerationscaffoldingTemplatesInASPNETMVC.aspx), I also am having trouble with .t4 templates placed locally inside of CodeTemplates/MvcView/ showing up in the Add New View Dialog – KyleMit Jan 25 '18 at 02:39

1 Answers1

0

Have you had a look at MVCScaffolding? http://nuget.org/packages/MVCScaffolding/

You can easily override the controller t4 template using MVCScaffolding: http://blog.stevensanderson.com/2011/04/06/mvcscaffolding-overriding-the-t4-templates/

Halceyon
  • 299
  • 1
  • 4
  • 12