Multiple Output Files using T4
T4 is Visual Studio’s built-in code generator. Though fundamental for many of the frameworks built atop .NET, it is incredibly under-powered. Even the simplest things like intelligently reusing templates or emitting multiple files seem beyond it at first glance. Yet developers such as Damien Guard are finding of ways to improve it.
