Advanced Code Generation with T4 and Visual Studio
Abstract
Take your code generation to the next level with Text Template Transformation Toolkit (T4) - one of the best-hidden new features of Visual Studio 2008. This session provides information that will help you to use T4 templates effectively: design of templates for reuse and extensibility, generation of multiple outputs from a single template, use of templates in team environment, and more.
Duration
60 minutes
Level
400
Outline
- Generating multiple output files from single T4 file
- Making code generation templates reusable
- Combining templates in complex code generators
- Using code generators in team environment
- Making code generators extensible
Resources
- T4 Editor by Tangible Engineering
- T4 Toolbox
- Articles
- Presentation: Introduction to Code Generation with T4 and Visual Studio
- DSL Tools: Generating Artifacts by Using Text Templates


