T4MVC Add-In to auto run template

added by wayne.brantley
3/16/2010 5:17:04 PM


T4MVC is a fantastic solution to avoid 'Magic Strings' in ASP.NET MVC. Thanks to David Ebbo for this contribution which has made its way to MVCContrib. Must keep T4 template open and save it once. This has been the only negative thing about the template. I thought about writing an Add-In for VS to do this and even taked to David about doing it. Well, his latest post has inspired me to write one. I took my dot net less plug in and ripped nearly everything out of it, threw in about 5 lines of new code and it is done. Configuration There isn't any. Just install the add-in and it should work. It watches for any save, add, or remove event to the solution and runs the T4 template at that time. As long as you have the T4MVC.tt file in your project it will run.