views:

22

answers:

1

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??

A: 

For msdeploy.exe you need to add -enableRule:DoNotDeleteRule to ensure content is not deleted. For more info on MSDeploy rules see http://technet.microsoft.com/en-us/library/dd568992(WS.10).aspx.

Sayed Ibrahim Hashimi
Thanks, that's what I needed!
Brad Heller