如何自动发布在Visual Studio 2008上建立一个网站? [英] How to automatically publish a website on build in Visual Studio 2008?

查看:327
本文介绍了如何自动发布在Visual Studio 2008上建立一个网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够每一个网页asp.net MVC 2项目建成时间自动发布到本地文件夹。

I want to be able to automatically publish to a local folder each time a web asp.net mvc 2 project is built.

我使用Visual Studio 2008。

I use Visual Studio 2008.

推荐答案

自动包含在Visual Studio的功能最简单的方法发表从生成菜单中可用的操作就是使用网络部署项目。还有一个VS2005为好。基本上它是您添加到您的解决方案,将针对您的web项目和建造时,将发布Web项目作为构建过程的一部分额外的项目。它使污垢简单的自动建立一个网站作为构建的一部分,而不与MSBuild的(虽然MSBuild的并不难)搞混。

The easiest way to automate the functionality included in Visual Studio's "publish" action available from the Build menu is to use the web deployment project. There's one for VS2005 as well. Basically it's an extra project that you add to your solution that will target your web project and when built will publish your web project as part of the build process. It makes it dirt simple to automatically build a site as part of build without mucking with MSBuild (though MSBuild isn't that difficult).

这篇关于如何自动发布在Visual Studio 2008上建立一个网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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