在使用TFS的连续部署中不包括某些文件夹(跳过命令?) [英] Not include certain folders in a continuous deployment with TFS (Skip Command?)

查看:334
本文介绍了在使用TFS的连续部署中不包括某些文件夹(跳过命令?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Team Foundation Server与Web Depoly连续部署,是否可以停止部署某些文件夹?如果是的话,怎么办?

Using Team Foundation Server continuous deployment with Web Depoly, is it possible to stop certain folders being deployed? And if it is, how?

更新
您不能通过命令行指定跳过规则(如MSBuild参数)因为它们被声明为项目,而不是属性。

A 跳过命令可以在发布配置文件中指定。但是,似乎发布配置文件仅适用于视觉工作室中的内置发布,而不是Web Deploy3。

A skip command can be specified in a publish profile. However it seems publish profiles are only for the inbuilt publishing in visual studio, not Web Deploy 3.

Web Deploy是否有一种方法可以接受发布配置文件,如果有,应该

Is there a way for Web Deploy to accept a publish profile, and if there is, should this be checked into TFS?

推荐答案

听起来好像您在将 MSDeploy 命令行与执行混为一谈通过命令行 MSBuild

It sounds like you are confusing the MSDeploy command line with executing MSBuild via the command line.

如果您正在执行msdeploy.exe或生成的 deploy.cmd 文件, MSBuild甚至都没有,您可以自由使用 MSDeploy跳过命令(您可以将其他命令行参数附加到 cmd 调用中,并将它们传递给msdeploy.exe)。

If you are executing msdeploy.exe or the generated deploy.cmd file, MSBuild doesn't even come into it and you are free to use the MSDeploy Skip Command (you can append additional command line arguments to the cmd call and they will be passed to msdeploy.exe).

如果使用的是MSBuild + DeployOnBuild或MSB uild +发布配置文件,您需要将跳过要求声明为 MsDeploySkipRules 项。如果您在此之前要分别构建软件包并想部署它,请您将会遇到一些障碍

If you are using MSBuild + "DeployOnBuild" or MSBuild + publish profiles you will need to declare your skip requirements as MsDeploySkipRules items. If you're building your package separately before this point and want to deploy it, you're going to run into some roadblocks.

这篇关于在使用TFS的连续部署中不包括某些文件夹(跳过命令?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆