MSDeploy 同步时不删除原有文件
在 jenkins里 Execute Windows batch command
"C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:iisApp=dev_Web,wmsvc=https://192.168.1.40,username=WebDeploy,password=123456 -dest:iisApp=web_dev,wmsvc=https://192.168.1.70,username=WebDeploy,password=12345678 -enableRule:DoNotDeleteRule -allowUntrusted=true
只要在部署脚本中写入-enableRule:DoNotDeleteRule
参数就可以了