Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run automatically t4 templates

I would like to know if is possible to run a T4 template when saving a other file, example run my .tt file after/on saving a xml file

I forgot to mention that my IDE is VS2010

like image 526
muek Avatar asked Oct 16 '10 09:10

muek


People also ask

What is transform all T4 templates?

t4 is basically a tool built into VS for doing text transformation, typically for doing code generation. Transform All T4 Templates searches your solution for *. tt files and executes them to create other text, again typically source code, files.

What is the purpose of using T4 templates?

Design-time T4 text templates let you generate program code and other files in your Visual Studio project. Typically, you write the templates so that they vary the code that they generate according to data from a model. A model is a file or database that contains key information about your application's requirements.


1 Answers

Yes, it is possible. Here is how.

like image 90
Oleg Sych Avatar answered Oct 02 '22 20:10

Oleg Sych