TeamCity cannot run MSBuild 12 reports missing UserAgent

I have upgraded my version of TeamCity to 8.0.5 and upgraded from MS Visual Studio 2010 to MS Visual Studio 2013. I have had a number of problems but now I've got TeamCity running my NUnit tests and building successfully. However, I still can't get it to deploy correctly. My BuildLog shows the following error.

 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')

I am able to run MSBuild manually from the TeamCity server so I'm thinking that it could just be a case of me missing a parameter.

This is what is in that file at the line specified:

<!-- UserAgent string sent to msdeploy -->
<PropertyGroup>
  <_MSDeployUserAgentSource Condition=" '$(BuildingInsideVisualStudio)' != 'true'">$(VisualStudioVersion):CmdLine</_MSDeployUserAgentSource>
  <_MSDeployUserAgentSource Condition=" '$(BuildingInsideVisualStudio)' == 'true'">$(VisualStudioVersion):PublishDialog</_MSDeployUserAgentSource>
  <_MSDeployUserAgent>VS$(_MSDeployUserAgentSource)</_MSDeployUserAgent>
</PropertyGroup>
1 comment
Comment actions Permalink

The solution is to ensure that Web Deploy is updated to 3.5.

0

Please sign in to leave a comment.