Thursday, July 31, 2008

"Hidden" Code Gen Tool in VS2008

Did you know there was a "hidden" code-generation feature in VS2008? Text Templating Transformation Toolkit (aka T4) actually debuted in VS2005 Guidance Automation Toolkit, but shipped baked into VS2008. This gives you CodeSmith-style code-generation templates that can be used in your projects to generate code from any source. Simply add a text file with the extension ".tt", and VS will add a "Transform Templates" button to the solution explorer window.

No comments: