Why do my T4 templates sometimes append a number to the output file and sometimes not? For instance, in one case I might have a template file called Foo.tt
and I'll get an output file of Foo.cs
. In other cases, I'll get an output file of Foo1.cs
. In every case, there is no other Foo.cs
file that might be causing it to append a number. In other words, it is definitely not the result of any obvious file name conflict.
I'm a deeply anal retentive developer, so I'd sure love to know how to get rid of that useless numeric suffix.