Visual Studio 2010中 - WDP或发布自动部署? [英] Visual Studio 2010 - WDP or Publish for automated deployment?

查看:217
本文介绍了Visual Studio 2010中 - WDP或发布自动部署?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要升级到Visual Studio 2010,和我学习,现在有部署Web应用程序项目的几个选项。我一直在使用Web部署项目于2008年,我最初的想法是做同样的在2010年

I'm about to upgrade to Visual Studio 2010, and I'm learning that there are now a few options for deploying web application projects. I've been using Web Deployment Projects in 2008, and my initial thought was to do the same in 2010.

是否有任何优势,使用或发布在网络部署项目的Web部署工具?

我需要自动化,使构建和部署可以从TeamCity的运行过程。我想preFER,让我使用的Visual Studio(SLN)亚军,但一个自定义的MSBuild脚本会也没关系的方法。见<一href=\"http://stackoverflow.com/questions/1106239/web-application-deployment-workflow-with-svn-and-teamcity\">Web应用程序部署工作流程与SVN和TeamCity的对我目前的构建/部署工作流程的更多信息。

I need to automate the process so that the build and the deployment can be run from TeamCity. I'd prefer a method that would allow me to use the Visual Studio (sln) Runner but a custom MSBuild script would be OK too. See Web Application Deployment Workflow with SVN and TeamCity for more information on my current build/deployment workflow.

推荐答案

它们都完成相同的最终目标,但他们的工作非常不同。最后,我使用了新的Web部署工具。我选择了它,理由如下:

They both accomplish the same end goal, but they work very differently. In the end I used the new Web Deployment Tool. I chose it for the following reasons:


  1. 我可以建立我的解决方案,无需安装任何加载项和VS 2010防爆preSS。 MSDeploy是从的MSBuild脚本
  2. 我的生成服务器上执行
  3. MSDeploy似乎是preferred方法。

  4. 的Web.config转换比WDP web.config部分,更换更灵活。只有某些配置部分可与WDP更换,但转变是根本,可以适用于任何XML转换。

这篇关于Visual Studio 2010中 - WDP或发布自动部署?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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