I use MSDeploy to publish things to different servers during CI. When I publish from Visual Studio 2010 I have a “Leave extra files on destination” option, but I can’t seem to find a flag for this functionality when invoking MSDeploy from the command line.
Does anyone know how to do this??
For msdeploy.exe you need to add
-enableRule:DoNotDeleteRuleto ensure content is not deleted. For more info on MSDeploy rules see http://technet.microsoft.com/en-us/library/dd568992(WS.10).aspx.