title: Visual Studio 2012 T4 templates generating XML gives error
body: <p>I'm using visual studio 2012 to generate XML from a T4 template. The top of the template looks like</p>
  
  <pre><code>&lt;#@ template language="VBv4" hostspecific="True" debug="True" #&gt;
  &lt;#@ output extension="wmef" #&gt;
  &lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt;
  </code></pre>
  
  <p>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 is because it is a template for XML and not the actual XML. </p>
  
  <p>When I first edit the .tt file everything is ok. However once the XML file is generated and I load it in the editor to look at it and then go back to the .tt file suddenly the .tt file is syntax highlighted to look like XML and then the build errors appear.</p>
  
  <p>Perhapps this is just a bug for m$oft</p>
  
  <p>Any ideas on what might be happening here?</p>