title: TeamCity reporting missing UserAgent when using MSBuild 2012
body: <p>I've been trying to get TeamCity to work with an MVC 5 project. It builds the project successfully but is failing when it comes to use MSDeploy. The error is:</p>
  
  <pre><code>[VSMSDeploy] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(4255, 5): 
  Web deployment task failed. ('Microsoft.Web.Deployment.DeploymentBaseOptions' does 
  not contain a definition for 'UserAgent')
  </code></pre>
  
  <p>Looking in the file it talks about I can see this:</p>
  
  <pre><code>&lt;!-- UserAgent string sent to msdeploy --&gt;
  &lt;PropertyGroup&gt;
    &lt;_MSDeployUserAgentSource Condition=" '$(BuildingInsideVisualStudio)' != 'true'"&gt;$(VisualStudioVersion):CmdLine&lt;/_MSDeployUserAgentSource&gt;
    &lt;_MSDeployUserAgentSource Condition=" '$(BuildingInsideVisualStudio)' == 'true'"&gt;$(VisualStudioVersion):PublishDialog&lt;/_MSDeployUserAgentSource&gt;
    &lt;_MSDeployUserAgent&gt;VS$(_MSDeployUserAgentSource)&lt;/_MSDeployUserAgent&gt;
  &lt;/PropertyGroup&gt;
  </code></pre>
  
  <p>So, I don't know if I need to alter this somehow.</p>
  
  <p>I don't have VisualStudio 2013 installed on my TeamCity server, which is running this version: TeamCity Professional 8.0.5 (build 27692). </p>
  
  <p>I have though installed MSBuild (<a href="https://stackoverflow.com/questions/20008861/team-city-unmet-requirement-msbuildtools12-0-x86-path-exists">Team city unmet requirement: MSBuildTools12.0_x86_Path exists</a>). If I go to the folder where the cmd.deploy is created and run it from the command line then it deploys fine. I'm wondering how to specify the UserAgent.</p>