MS Deploy任务失败DeploymentBaseOptions不包含UserAgent的定义 [英] MS Deploy task failed DeploymentBaseOptions does not contain a definition for UserAgent

查看:136
本文介绍了MS Deploy任务失败DeploymentBaseOptions不包含UserAgent的定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行带有MS Build参数进行部署的Team Foundation 2013构建时遇到问题,并且出现错误:

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部署任务失败. ("Microsoft.Web.Deployment.DeploymentBaseOptions"不包含"UserAgent"的定义)

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

开发工作已在VS 2013中完成.

Development is being done in VS 2013.

奇怪的是,如果我将MSBuild文件夹 * .. \ v11.0 \ Web * 复制到 * v12.0 \ Web * 构建工作并完成部署.

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.

我已经检查了v12.0 \ Web \ Microsoft.Web.Publishing.targets文件,并且有一个UserAgent条目,而在v11.0 \ Web \ Microsoft.Web.Publishing.targets中没有条目

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

我可以使用VS Publish在我的计算机上很好地发布,但是在构建服务器上它失败了 是否有人成功使用MSBuild VS 2013目标成功构建和部署?

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?

推荐答案

我遇到了同样的问题.对我来说,解决方案是安装Web Deploy 3.5( http://www.iis.net/downloads/microsoft/web -deploy ).之后错误消失了.

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.

这篇关于MS Deploy任务失败DeploymentBaseOptions不包含UserAgent的定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆