简体   繁体   English

告诉MSDeploy.exe在后续部署中跳过部署一些选择文件

[英]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? 您如何告诉MSDeploy.exe在后续部署中跳过部署一些选择文件?

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. 例如,我部署了一个包含文件A,B和C的程序包。然后,我进行了另一个全新的构建,因此又制作了同一应用程序的另一个程序包,仅这次是使用二进制文件A,B和C的新版本。

Now, I want MSDeploy.exe to deliver/deploy only files A and C, and to not deploy the new version of file B. 现在,我希望MSDeploy.exe仅传递/部署文件A和C,而不部署新版本的文件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. 配置文件位于C:\\ Program Files \\ IIS \\ Microsoft Web Deploy V2。 It is called msdeploy.exe (XML Config File). 它称为msdeploy.exe(XML配置文件)。 The sample config file is in the same directory as masdeploy.exe.configsettings.example 样本配置文件与masdeploy.exe.configsettings.example位于同一目录中

Please post your solutions or any other findings. 请发布您的解决方案或任何其他发现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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