简体   繁体   中英

Deploying website with msdeploy(webdeploy)

I'm using webdeploy to publish my website following a build server in tfs2010.

I've excluded the web.config from the package as I want to keep the one on the destination server.

The problem is that since the web.config is not part of the package, webdeploy deletes the web.config file from the destination server !

how can I prevent that ? I haven't found in options.

您需要将其包括在包装中。

I found out... I needed to add this extra parameter to msdeploy.exe :

-enableRule:DoNotDeleteRule

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM