0

The msbuild project has the following aspnetcompiler item

        <AspNetCompiler
                VirtualPath = "DeployTemp" 
                PhysicalPath = "..\src\external\Client1\"
                TargetPath = "$(CompileOutputDir)\ClientPages\Client1\"
                Force = "true"
                Debug = "true"
                Updateable = "true"
                ToolPath="C:\Windows\Microsoft.NET\Framework\v4.0.30319\"/>     

THe way my application works is, users can upload pictures. The pictures are saved in a folder called *pet_pics* (which is at the same level as the web.config).

If I redeploy using the above msbuild project, the folder *pet_pics* gets deleted and all the pics are lost. Is there a way to configure the msbuild, such that it deploys the project files and does not delete any non-project files?

jaxxbo
  • 7,314
  • 4
  • 35
  • 48
  • You're learning that you don't want to have your upload folder within the path of your web site. Move it outside. – John Saunders Jan 20 '14 at 02:20
  • true. Just that I cannot touch the existing code that I inherited. But i have to automate the deployment. – jaxxbo Jan 20 '14 at 20:09

0 Answers0