ASP.NET MVC custom T4 templates for views

asp.net-mvc, t4, visual-studio

Solution

ASP.Net MVC - T4 Fun

T4 Templates: A Quick-Start Guide for ASP.NET MVC Developers

Problem

When I'm adding a new strongly-typed view to an ASP.NET MVC project, I can select between different view content templates (Create Details, Edit, List). I have read these are templates based on the Visual Studio T4 code generation engine. How can I author and configure my own templates and let them appear in the available templates when adding a new view?

Original source