Visual Studio 2012 T4 templates generating XML gives error
问题 I'm using visual studio 2012 to generate XML from a T4 template. The top of the template looks like <#@ template language="VBv4" hostspecific="True" debug="True" #> <#@ output extension="wmef" #> <?xml version="1.0" encoding="utf-8" standalone="yes"?> The T4 template correctly generates the XML. This is no problem. However visual studio is getting confused and it additionally tries to process the template itself as XML and reports build errors saying the XML is ill formed which of course it