Masoud
Masoud

Reputation: 8211

How can i use .cs files that generated by a .tt file, separately?

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?

Upvotes: 0

Views: 1389

Answers (1)

John Bowen
John Bowen

Reputation: 24453

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.

Upvotes: 2

Related Questions