MSBuild not triggering WebDeploy

南笙酒味 提交于 2019-11-28 06:19:59

问题


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

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 different continuous deployment setups were previously working.

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

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.

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

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

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


回答1:


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

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.



来源:https://stackoverflow.com/questions/15640707/msbuild-not-triggering-webdeploy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!