Pages

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.

http://msdn2.microsoft.com/en-us/vs2008/cc308634.aspx
http://msdn.microsoft.com/en-us/library/bb126445(VS.80).aspx

No comments: