Tag: t4
All the articles with the tag "t4".
-
T4 Assembly references for Design-time templates
Common patterns for referencing assemblies in T4 design-time templates using GAC paths, absolute paths, and MSBuild variables.
-
T4 Design-Time templates base class
How to create a shared custom base class for T4 design-time templates by extending TextTransformation, with a working example.
-
T4 Templates and Null in Expression block
T4 templates throw ArgumentNullException on null expression blocks; fix by overriding ToStringWithCulture in the base class.
-
T4 Runtime Template and code-behind logic
How to add a code-behind partial class to a T4 runtime template by manually editing the csproj file, with a Visual Studio add-in.
-
T4 Runtime Templates Base Class
Demonstrates extracting T4 runtime template auto-generated base class into a shared reusable C# base class for all templates.
-
T4 Syntax
Overview of T4 template syntax including directives, text blocks, control blocks, expression blocks, and class feature blocks.
-
T4 Syntax highlighting and IntelliSense
Third-party Visual Studio extensions for T4 syntax highlighting and IntelliSense, with a note on Visual Studio 2012 gaps.
-
T4 blog section
Introduction to the T4 (Text Template Transformation Toolkit) blog series covering code generation in Visual Studio.