如何将 IIS 7 Web 部署与 MSBuild 集成 (TeamCity)
如何将 IIS 7 Web 部署与 MSBuild (TeamCity) 集成?
How-To Integrate IIS 7 Web Deploy with MSBuild (TeamCity) ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Troy Hunt 有一个出色的5 部分博客系列 详细讨论了这个主题。
他有效地编译了所有其他资源并将它们变成了教程。
这是做你想做的事情的最清晰(不管你相信与否,最简洁)的方式。
Troy Hunt has an excellent 5-part blog series that goes over this topic in detail.
He has effectively compiled all of the other resources out there and turned them into a tutorial.
It's the clearest (and believe it or not, the most concise) way to do what you want.
经过几天的努力,我终于让它工作了。它最终归结为 MSBuild 脚本,在临时/测试服务器上安装和配置 Web 部署,并在 Team City 中进行设置。
步骤很多,而且都可能出错。我将进一步调查并在博客中介绍它,但这是我第一次尝试。
我正在使用以下设置:
这是 MSBuild 脚本:
要点:
准备工作:
Team City 创建了一条 contentPath 规则:
我使用上面的 MSBuild 脚本设置了一个新的构建配置,并将目标设置为部署
I finally managed to get it to work after several days of struggle. It finally boils down to a MSBuild script, installing and configuring web deploy on the staging/test server and setting it up in Team City.
It's a lot of steps and all can go wrong. I will investigate further and blog about it but this is my first attempt that works.
I'm using this setup:
Here is the MSBuild script:
Key points:
Preparations:
Team City:
I set up a new build configuration using the MSBuild script above and set the target to Deploy