Is there any good resources for T4 (Text Templating framework from Microsoft)?

StackOverflow https://stackoverflow.com/questions/204836

  •  03-07-2019
  •  | 
  •  

Question

Anything would be good. Exemples, best practices, samples, etc.

Was it helpful?

Solution

OTHER TIPS

The Hanselman post links to this, but just in case: Rob Conery also just recently blogged on this and as usual, it's excellent: http://blog.wekeroad.com/blog/make-visual-studio-generate-your-repository/

For my money, the definitive source of good quality information on T4 can be found at http://www.olegsych.com/

With the basics beginning here -> http://www.olegsych.com/2007/12/text-template-transformation-toolkit/

I find Clarius's T4 Editor really helpful. It adds syntax highlighting, IntelliSense, and project items for T4 to Visual Studio. There are also demo videos on the website. There is a free Community edition, and an enhanced, non-free edition which also does C# syntax highlighting.

Also make sure to check out the "T4 Templates" course delivered by pluralsight. It covers the following topics:

  • Introduction to T4
  • T4 Building Blocks
  • Extended T4
  • Real-world examples
  • Troubleshooting and debugging

It seems there is also another T4 Editor by Tangible that seems more than just a T4 Editor but also includes some modeling tools.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top