T4 Templates

Introduction to Microsoft's Text Template Transformation Toolkit.
More
Introduction to Microsoft's Text Template Transformation Toolkit.
More
This course introduces T4, Microsoft's code generation tool that comes with Visual Studio. The Text Template Transformation Toolkit dynamically produces text of any type and is used for code and document generation. Discover how to reduce development time, bugs and maintenance by building reusable templates. This course covers T4 template building blocks, extending templates with custom functionality and debugging the template execution process. MVC and Entity Framework, among others, can be customized and extended through T4 templates. This course covers how to customize MVC controllers using the default templates and the MVCScaffolding package, and customizing entities by adding validation attributes. Top it off with real world uses of T4 including generating, and automatically synchronizing, code based on external resources, and combining T4 with other technologies to produce powerful templates.

Learn by doing. Use hands-on exercise files to follow along with the course and practice concepts as you’re watching them. Sign up now to enhance your training.

Start free trial

Course transcripts are the written form of the course audio. You can use transcripts to just read the audio, or to search for terms or phrases to find where they are discussed in the training. Sign up to try them now.

Start free trial

Ask questions, read feedback from other learners and share your input, all in our discussion forums. Sign up now to join our community of learners, course authors and friendly support staff.

Start free trial

You’ve completed the course but did you master it? Test yourself with questions that gauge your understanding of the material and show you what to brush up on. Sign up to get started.

Start free trial
Table of Contents
Description
This course introduces T4, Microsoft's code generation tool that comes with Visual Studio. The Text Template Transformation Toolkit dynamically produces text of any type and is used for code and document generation. Discover how to reduce development time, bugs and maintenance by building reusable templates. This course covers T4 template building blocks, extending templates with custom functionality and debugging the template execution process. MVC and Entity Framework, among others, can be customized and extended through T4 templates. This course covers how to customize MVC controllers using the default templates and the MVCScaffolding package, and customizing entities by adding validation attributes. Top it off with real world uses of T4 including generating, and automatically synchronizing, code based on external resources, and combining T4 with other technologies to produce powerful templates.
Exercise Files

Learn by doing. Use hands-on exercise files to follow along with the course and practice concepts as you’re watching them. Sign up now to enhance your training.

Start free trial
Transcript

Course transcripts are the written form of the course audio. You can use transcripts to just read the audio, or to search for terms or phrases to find where they are discussed in the training. Sign up to try them now.

Start free trial
Discussion

Ask questions, read feedback from other learners and share your input, all in our discussion forums. Sign up now to join our community of learners, course authors and friendly support staff.

Start free trial
Knowledge Check

You’ve completed the course but did you master it? Test yourself with questions that gauge your understanding of the material and show you what to brush up on. Sign up to get started.

Start free trial
Course info
Level
Intermediate
Rating
(363)
Duration
1h 35m
Released
17 Jan 2012
Course authors

Dustin is a co-founder of Developer Advocates, a freelance evangelism for hire outfit. He is also a co-host on the MashThis.IO podcast. As a PostSharp MVP, he regularly attends user groups, code camps and other developer events to speak about aspect oriented programming and a range of other topics.

Share course