VS 2008 Web Deployment - prevent folder from being deleted

自作多情 提交于 2019-12-10 18:17:35

问题


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

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