0

I used a .tt file in c# to generate some .cs files, how can I use these generated class separately in my project, without .tt file?

4

1 に答える 1

2

If you open your project file as xml, either by unloading and editing in VS or by opening in some external text editor, you can remove the .tt file manually. On the generated .cs files there will also be a DependentUpon tag referencing the .tt file that should be removed as well.

于 2013-02-04T18:42:01.697 に答える