Transform T4 templates as part of the build, and pass variables from the project

added by DotNetKicks
11/12/2017 11:49:18 PM

1 Kicks, 144 Views

T4 (Text Template Transformation Toolkit) is a great tool to generate code at design time; you can, for instance, create POCO classes from database tables, generate repetitive code, etc. In Visual Studio, T4 files (.tt extension) are associated with the TextTemplatingFileGenerator custom tool, which transforms the template to generate an output file every time you save the template.


0 comments