I've been trying to make this work the whole day - to publish my website in 2 steps having app_offline (my custom app_offline) published and then removed:
1. First I build a package using msbuild which creates standard project package (with .zip, SetParameter.xml, etc)
2. I publish it with webdeploy running the MyProject.deploy.cmd
Now, in the 1) step I put app_offline.htm to the site destination folder (this one works). And after step 2) I need to remove the app_offline.
The problem is I don't understand if webdeploy is using msbuild internally but just has different set of targets? If this is true then I could create a target to remove app_offline (and I need the right target name for this). Otherwise I need to do this running msdeploy with delete operation. But where do I get the destination folder in this case?
This is VS2012 project.