问题
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