TeamCity可以使用sln2008 build runner发布一个Web项目吗? [英] Can TeamCity publish a Web project using the sln2008 build runner?

查看:136
本文介绍了TeamCity可以使用sln2008 build runner发布一个Web项目吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在TeamCity中构建一个ASP.Net MVC项目。



我可以以某种方式调用Publish目标,并将输出复制到IIS下的文件夹?或者我需要编写一个msbuild脚本?

解决方案

我写了一个很长的博客文章在这个主题可能会对您感兴趣:



http://www.diaryofaninja.com/blog/2010/05/09/automated-site-deployments-with-teamcity-deployment-projects-amp -svn



基本上:




  • 安装Web部署项目

  • 将Web部署项目添加到您的解决方案

  • 设置解决方案配置管理器以进行部署构建配置

  • <在运行构建时,让团队城市使用这个构建开关
  • 有一个啤酒,并怀疑你的自动化awesomeness的荣耀


I'm building an ASP.Net MVC project in TeamCity.

Can I somehow call the Publish target and get the output copied to a folder under IIS? or do I need to write an msbuild script for this?

解决方案

I've written a pretty long blog post on this very topic that may interest you:

http://www.diaryofaninja.com/blog/2010/05/09/automated-site-deployments-with-teamcity-deployment-projects-amp-svn

basically:

  • install web deployment projects
  • add web deployment project to your solution
  • setup the solution configuration manager to have a "Deployment" build configuration
  • get team city to use this build switch when running the build
  • have a beer and wonder in glory at your automagical awesomenesss

这篇关于TeamCity可以使用sln2008 build runner发布一个Web项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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