How do I get a T4 template to generate its output on every build? As it is now, it only regenerates it when I make a change to the template.
I have found other questions similar to this:
T4 transformation and build order in Visual Studio (unanswered)
How to get t4 files to build in visual studio? (answers are not detailed enough [while still being plenty complicated] and don’t even make total sense)
There has got to be a simpler way to do this!
I used JoelFan’s answer to come up w/ this. I like it better because you don’t have to remember to modify the pre-build event every time you add a new .tt file to the project.
%PATH%transform_all ..\..“transform_all.bat