We have a .cs file and a .vb file that are each linked into dozens of projects in their respective languages to provide common assembly information. I'd like to set the common aspects between them in T4 by moving each to a template.
AssemblyInfo.cs
and AssemblyInfo.vb
should be the output file names. However, I know that normally, a T4 template for either of these would be named AssemblyInfo.tt
.
Since I obviously can't have two T4 templates with the exact same name, how can I output two files that are different only by extension?
I can't rename the files to be written without un-linking them from many different projects and then having to re-link them again, so that's out of the question.
Is there some sort of directive that could be used to manually specify the output file name so that the templates could have different names?