This project is read-only.

Inclusion guards or other repeated-include facility?

Nov 14, 2011 at 8:26 PM

How do I avoid errors when repeatedly including the same files?  I'm using Visual T4 for IDE support so I want to do my includes in every template and generator file, but then when I import the generator for my output files I get the expected errors because the generators and templates are often all including the same files, resulting in repeated declaration of nested classes and methods and whatnot.

Is there any workaround for this other than doing all my includes at the root template level?

Feb 27, 2012 at 5:12 PM
Edited Feb 27, 2012 at 5:12 PM

I haven't found a solution to this.