Site Archives T4

T4 Tutorial: Unit testing code generators


This post is a part of the series that introduces code generation with Text Templates (also known as T4 Templates) in Visual Studio using C# and Visual Basic; explains how to create reusable templates and combine them in complex code generators.

T4 Tutorial: Handling Errors in Code Generators


This post is a part of the series that introduces code generation with Text Templates (also known as T4 Templates) in Visual Studio using C# and Visual Basic; explains how to create reusable templates and combine them in complex code generators.

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 post is a part of the series that introduces code generation with Text Templates (also known as T4 Templates) in Visual Studio using C# and Visual Basic; explains how to create reusable templates and combine them in complex code generators.

T4 Tutorial: Creating complex code generators


This post is a part of the series that introduces code generation with Text Templates (also known as T4 Templates) in Visual Studio using C# and Visual Basic; explains how to create reusable templates and combine them in complex code generators.

T4 Tutorial: Creating reusable code generation templates


This post is a part of the series that introduces code generation with Text Templates (also known as T4 Templates) in Visual Studio using C# and Visual Basic; explains how to create reusable templates and combine them in complex code generators.

T4 Tutorial: Debugging Code Generation Files


This post is a part of the series that introduces code generation with Text Templates (also known as T4 Templates) in Visual Studio using C# and Visual Basic; explains how to create reusable templates and combine them in complex code generators.

T4 Tutorial: Troubleshooting Code Generation Errors


This post is a part of the series that introduces code generation with Text Templates (also known as T4 Templates) in Visual Studio using C# and Visual Basic; explains how to create reusable templates and combine them in complex code generators.

T4 Tutorial: Creating your first code generator


This post is a part of the series that introduces code generation with Text Templates (also known as T4 Templates) in Visual Studio using C# and Visual Basic; 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 […]