title: TFService MSBUILD and T4 Code Generation
body: <p>We are using a T4 file to manage our assembly versioning;
  Basically we are following <a href="http://bloggingabout.net/blogs/vagif/archive/2010/04/24/using-t4-templates-to-manage-assembly-version-information.aspx" rel="nofollow">these procedure</a> to regenerate our Assembly versionings on each build.
  This is done by having the .csproj use the <a href="http://www.microsoft.com/en-us/download/details.aspx?id=40754" rel="nofollow">Modeling SDK for VS 2013</a> in order to <a href="http://msdn.microsoft.com/en-us/library/vstudio/ee847423.aspx" rel="nofollow">customize T4 regeneration configuration with MSBUILD</a>.</p>
  
  <p>This works great! Unfortunately team-build for Team Foundation Service does not appear to support T4 code generation at build time as the instances of VS 12 on the build server do not have the TextTemplating.targets in the default install location; assumedly the Modeling/VS SDKs are not installed on the build server (from the TFService build failure logs): </p>
  
  <blockquote>
    <p>The imported project "C:\Program Files (x86)\MSBuild\12.0\Microsoft\VisualStudio\v12.0\TextTemplating\Microsoft.TextTemplating.targets" was not found. Confirm that the path in the  declaration is correct, and that the file exists on disk.</p>
  </blockquote>
  
  <p>Are there plans to install the Microsoft-released VS 2013 addons (VS SDK, Modeling SDK, etc) to the build server image?</p>
  
  <p>Is there a work around I can implement so that when I commit my code to Team Foundation Service via Git, the build won't break?</p>
  
  <p>How can I configure TFService's Hosted Build Controller to transform my T4 files during its builds?</p>