Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Output Path for Shared T4 Template

How can I specify the output path of a T4 template?

When I add my T4 template using "Add as Link" to my project from $TemplatePath$, it generates the output file in $TemplatePath$, not $ProjectPath$. How can I specify that $ProjectPath is where the generated file is placed?

like image 231
Daniel A. White Avatar asked Jan 12 '11 16:01

Daniel A. White


1 Answers

I got around this by having a master template in one location and then templates that imported that one (but did little else) in each project. Of course, that's not the nicest solution.

like image 57
Jeff Yates Avatar answered Sep 22 '22 00:09

Jeff Yates