7/31/2010
LifeCycle Solutions - Home ( the software development blog )
 

<April 2008>
SunMonTueWedThuFriSat
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

Subscribe to this feed:

RSS 2.0 | Atom 1.0 |CDF






Tuesday, April 08, 2008

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. 

Here's a video that shows some of the basics:
http://msdn2.microsoft.com/en-us/vs2008/cc308634.aspx

Posted by Daniel Root

© 2006 LifeCycle Solutions, LLC | All Rights Reserved