简体   繁体   中英

Tell MSDeploy.exe to skip deploying a few select files in subsequent deployments

How do you tell MSDeploy.exe to skip deploying a few select files in subsequent deployments?

For eg I deploy a package that has files A, B and C. Then, I make another fresh build and therefore another package of the same application, only this time with the new version of the binaries A, B and C.

Now, I want MSDeploy.exe to deliver/deploy only files A and C, and to not deploy the new version of file B.

Is there a way to do that?

I think you can create a rule in the config file if you wish to skip those files in every single deployment.

The config file is located at C:\\Program Files\\IIS\\Microsoft Web Deploy V2. It is called msdeploy.exe (XML Config File). The sample config file is in the same directory as masdeploy.exe.configsettings.example

Please post your solutions or any other findings.

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