Site Archives Code Generation
T4 Tutorial: Handling Errors in Code Generators
This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators. In order to follow examples in this article, you need to have Visual Studio 2008 Standard Edition […]
Advanced Code Generation Patterns with T4 & DSL Tools
Back in September, I had a chance to co-present Advanced code generation patterns with T4 & DSL Tools with Gareth Jones and Jean-Marc Prieur at the VSX Developer Conference. Here is the abstract of this session:
Code generation is an increasingly common technique in application development and forms a part of many Visual Studio extensions. With […]
T4 Tutorial: Reusing code generators on multiple projects
This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators.
T4 Tutorial: Creating complex code generators
This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators.
T4 Tutorial: Creating reusable code generation templates
This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators.
T4 Tutorial: Debugging Code Generation Files
This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators.
T4 Tutorial: Troubleshooting Code Generation Errors
This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators.
T4 Tutorial: Creating your first code generator
This is the first article in a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators.
Killing three birds with one stone
I’ve had a difficult time trying to start a series of posts explaining design of T4 Toolbox. For instance, it includes a class called Template. When I sat down to write about it, the question I asked myself and tried to answer was “What is a Template?” Well, it’s a template. I’ve been thinking about […]
T4 Toolbox
You may have noticed that in my last couple of articles about T4, the download links point to a CodePlex project called T4 Toolbox. This post describes what this project is about.
Find It Quickly
Find what you're looking for quickly by using our keyword search. Can't find it? Try our links below.


