VS 2008 Web Deployment - Prevent Folder Deletion

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 a uploads folder in the root of the site on which the user-created images are saved. Whenever the build is done (using the team city), the uploads folder is deleted, which means that previously uploaded images are permanently deleted.

In any case, in the deployment project, can I say that it does not delete this folder? Or will I need to copy it to the preliminary assembly and copy it back to afterbuild?

Any help is appreciated.

+3
source share

All Articles