Last post Apr 12, 2007 01:59 PM by photoz
Apr 09, 2007 02:25 PM|photoz|LINK
Is there a way to configure WDP to NOT destroy the contents of its output folder before it installs?
I have custom access rights on some folders in my app that I have to recreate each time I deploy.
Would prefer it if WDP just overwrote existing files, instead of wiping everything out then recreating.
Apr 11, 2007 12:10 PM|jtaylor1024|LINK
I'm looking for an answer to the same problem. I want to leave my images directory alone on the server (app allows uploads) and when I use the following it blows it away rather than deleting it and recreating it. I expected it to just leave it without
Apr 11, 2007 02:23 PM|jtaylor1024|LINK
Ok I think I have a solution for both of us. Rather than deploy directly to your server, just deploy locally. Then add an AfterBuild task that copies the files. This won't destroy anything at your deploy location (can be a share).
Apr 11, 2007 06:20 PM|photoz|LINK
Apr 12, 2007 01:59 PM|photoz|LINK
Thanks for the idea. The syntax was a little off, but here is how I got it working:
<Exec Command="xcopy $(OutputPath)*.* $(DeployPath) /y /e /i"/>
You have to put the *.* after the output path var since it always is rendered with the trailing slash.
I really don't like this solution, since it requires manual intervention into the project file.
A checkbox that says "don't delete output path" would be a lot NICER!