T4 and TextTemplatingFileGenerator

I am using T4 in my project. I have a .tt file, which is TextTemplatingFileGenerator I found that it will not generate output unless I edit the .tt file. Is there a way to generate the result by creating or compiling? This is important to me because I add this .tt file to the VS project template and this .tt file reads another XML file in the same project template. and the project template will be used by all other developers. and when the developer edits this XML file and starts the assembly, I want to regenerate the template. I do not want to ask all developers to modify .tt when they want to regenerate the output. thank

+5
source share
1 answer

You can initiate the conversion without changing the template by selecting "Run Custom Tool" from the context menu in Solution explorer or use the MSBuild integration to convert your templates during assembly time.

+7
source

All Articles