问题
I have an ASP.NET MVC 2 project that is built and then deployed using a web deployment project (Visual Studio 2008). The site has an uploads folder in the root of the site where user generated images are saved to. Whenever the build is run (using team city) the uploads folder is deleted meaning any previously uploaded images are deleted for good.
Is there anyway in the deployment project that i can tell it not to delete this folder? Or will i have to copy it out prebuild and copy it back in afterbuild?
Any help is greatly appreciated
来源:https://stackoverflow.com/questions/6384092/vs-2008-web-deployment-prevent-folder-from-being-deleted