发布选定的文件ASP.NET,Visual Studio 2008 [英] Publish selected files ASP.NET, Visual Studio 2008

查看:71
本文介绍了发布选定的文件ASP.NET,Visual Studio 2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET Web应用程序

I have a ASP.NET Web Application

有什么方法可以只发布Visual Studio 2008中的选定文件.

Is there any way we can publish only selected files from Visual Studio 2008.

我已经发布了该网站,现在我已经对某些代码文件进行了一些修改,我只希望发布几个代码文件,而不是所有更改的文件.

I have already published the site, now I have made some modifications to some of the code files and I want to publish only few code files not all the changed files..

有什么办法可以实现这一目标?

Is there any way we can achieve this ??

推荐答案

在发布Web"屏幕上,如果选择用本地副本替换匹配的文件"而不是在发布之前删除所有现有文件",则它将仅发布不同的文件.

On the Publish Web screen, if you choose "Replace matching files with local copies" instead of "Delete all existing files prior to publish" then it will only publish the files that are different.

在您的情况下,如果您更改了一些代码并使用替换..."选项进行发布,则它将简单地用新编译的DLL替换Web应用程序的现有DLL,而应将其他所有内容都保留下来.

In your case, if you changed some of the code and publish with the "Replace..." option, then it will simply replace the existing DLL for your web application with a newly compiled one and should leave everything else alone.

但是...我想您是说您不想部署所有更改.这就是源代码管理的目的.您应该在要发布的版本或分支中检出代码,然后再发布.

But... I think you're saying that you don't want to deploy all of your changes. This is what source control is for. You should check out the code at whatever revision or branch you want to publish for and then publish it.

这篇关于发布选定的文件ASP.NET,Visual Studio 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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