Q:

MS Deploy task failed DeploymentBaseOptions does not contain a definition for UserAgent

I am having trouble running a Team Foundation 2013 build with MS Build parameters for deployment and I am getting an error :
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets (4255): Web deployment task failed. ('Microsoft.Web.Deployment.DeploymentBaseOptions' does not contain a definition for 'UserAgent')
Development is being done in VS 2013.
What is strange is that if I copy the MSBuild folder *..\v11.0\Web*  to the *v12.0\Web*
The build works and does the deployment.
I have already checked the v12.0\Web\Microsoft.Web.Publishing.targets file and there is an entry for UserAgent while in the v11.0\Web\Microsoft.Web.Publishing.targets there is no entry
I am able to publish fine using VS Publish on my computer , but on the build server it fails
Has anyone managed to build and deploy using MSBuild VS 2013 targets successfully?

A:

I faced the same issue. For me the solution was to install Web Deploy 3.5 (http://www.iis.net/downloads/microsoft/web-deploy). After that the error disappeared.

