开发者

T4 and TextTemplatingFileGenerator

I am using T4 in my project. I have a .tt file which is TextTemplatingFileGenerator I found that it won't generate the output unless I edit the .tt file. Is there a way to generate the output by building or compiling? It is important for me, because I am adding this .tt file in a VS project template, and this .tt file is reading an开发者_如何转开发other xml file in the same project template. and the project template will be used by all other developers. and when the developer edit that xml file and run the build, I want to re-generate the template. I don`t want to ask all developers to modify the .tt whenever they want to re-generate the output. thanks


You can trigger transformation without changing the template by selecting "Run Custom Tool" from the context menu in Solution explorer, or use MSBuild integration to transform your templates at build time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜