Code Generation with T4 Text Templates
Abstract
Why write repetitive code when you can generate it? Learn about Text Template Transformation Toolkit (T4) - one of the best-hidden new features of Visual Studio 2008. T4 allows you to use simple ASP.NET-like template syntax to generate application source code, configuration files, stored procedures and more. This presentation gives you all the information you need to start using T4 effectively in your project. We will go from basics (such as T4 template syntax) to advanced topics (such as template design and use of T4 in large projects) stopping along the way to create several templates from scratch.
- Part 1: Introduction
- Part 2: Advanced Topics
Duration
2 hours
Outline
Resources
- T4 Editor by Clarius Consulting
- Article: Text Template Transformation Toolkit
- Domain Specific Language Tools: Generating Artifacts by Using Text Templates


