Publish selected files ASP.NET, Visual Studio 2008

橙三吉。 提交于 2020-03-05 05:47:09

问题


I have a ASP.NET Web Application

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 ??


回答1:


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.

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.



来源:https://stackoverflow.com/questions/7206274/publish-selected-files-asp-net-visual-studio-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!