Moving the .cs files generated by a T4 Template
How can I move the .cs or .vb files ge开发者_如何学运维nerated by a T4 template to another folder of the project in visual studio 2010.
I haven't tried it, but this project looks like it might do what you want. It allows you to specify a different folder or even another project to generate the files in.
T4Toolbox
Actually in order to do that we have to edit the T4 template file. For that in visual studio 2010 there is a extension named Visual T4. So after opening the .T4 or .tt file you can change the path of the folder where you want to generate your code files.
精彩评论