MSBuild不触发WebDeploy [英] MSBuild not triggering WebDeploy

查看:150
本文介绍了MSBuild不触发WebDeploy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

多个TFS 2010 MSBuilds不会触发Web Deploy将Web应用程序发布到IIS网站.

Multiple TFS 2010 MSBuilds are not triggering Web Deploy to publish the web application to the IIS website.

这是针对多种不同的软件产品,多种不同的构建配置,2种不同的构建代理(在2台不同的服务器上),在多个不同的服务器上的多个IIS网站实例.

This is for multiple different software products, multiple different build configurations, 2 different build agents (on 2 different servers), multiple IIS web site instances on multiple different servers.

以前有3种不同的连续部署设置.

3 different continuous deployment setups were previously working.

因此,希望这可以排除构建/构建服务器/托管服务器/Web部署和IIS的未配置.

So hopefully this rules out miss-configuration of the build/build servers/hosting servers/web deploy and IIS.

根据网络管理员的说法,网络上没有任何变化(所有服务器都是本地服务器),并且端口8172未被任何安全配置阻止.

According to the network manager nothing has changed on the network (all servers are local), and port 8172 is not blocked by any security configurations.

所有构建均成功,Web部署无提示失败(无错误,日志中无内容).似乎不再触发Web部署.

All builds succeed, web deploy fails silently (no error, nothing in the logs). It appears that web deploy is no longer being triggered.

这里还有其他端口吗? 还有什么可能阻止MSBuild与Web Deploy之间的通信? 您是否希望它以静默方式失败(日志中没有任何内容或没有传递回MSBuild)?

Are there any other ports that are used here? What else could be blocking the communication between MSBuild and Web Deploy? Would you expect it to fail silently (nothing in the logs or passed back to MSBuild)?

更新 这是一个类似的问题如何确定是否为TFS构建定义执行了MSBUILD参数

UPDATE This is a similar question How to determine if MSBUILD Arguments were executed for TFS Build Definition

推荐答案

假设您正在使用vs2012,请在构建服务器上确保存在以下两个文件夹:Web&

Assuming you are using vs2012, on your build server make sure the following two folders exist: Web & WebApplications in

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v11.0

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0

如果这些不存在,则需要从您要进行开发的机器上复制.这为我工作,并解决了项目部署中的所有问题.

If these dont exist then need to be copied from a machine your do development on. This worked for me, and solved all of my problems with the Deployment of projects.

这篇关于MSBuild不触发WebDeploy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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