MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.

I'm not curious

T4 Templates

Course Summary

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

  • +

    Course Syllabus

    ● Introduction
        ◦ Outline
        ◦ What T4 is
        ◦ What T4 does
        ◦ T4 templates types
        ◦ The benefits of using T4
        ◦ T4 in the wild
        ◦ Summary
    ● Getting Started with T4
        ◦ Outline
        ◦ Adding templates to projects
        ◦ A word of caution
        ◦ Template basics
        ◦ Executing templates
        ◦ Editing templates
        ◦ Summary
    ● T4 Building Blocks
        ◦ Outline
        ◦ Expression, statement and class feature blocks
        ◦ Assembly, import and include directives
        ◦ Output formatting and utility methods
        ◦ Demo: Connection string helper
        ◦ Summary
    ● Extended T4
        ◦ Outline
        ◦ Using custom utility methods
        ◦ Exploring preprocessed templates
        ◦ Extending preprocessed templates
        ◦ Template parameters
        ◦ Summary
    ● Real world examples
        ◦ Outline
        ◦ Building code from external resources
        ◦ Automating code synchronization
        ◦ Setting up template reuse
        ◦ Code generation - implementing INotifyPropertyChanged
        ◦ T4 with MVC
        ◦ T4 with Entity Framework
        ◦ Summary
    ● Troubleshooting and debugging
        ◦ Outline
        ◦ Identifying and troubleshooting errors
        ◦ Debugging templates
        ◦ Tips and tricks
        ◦ Summary


Course Fee:
USD 29

Course Type:


Course Status:



1 - 4 hours / week

This course is listed under Development & Implementations Community

Attended this course?

Back to Top

Awards & Accolades for MyTechLogy
Winner of
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top