使用TFS构建服务器但不部署

时间:2013-09-06 13:45:05

标签: azure tfs msbuild

我有一个构建定义设置,可以在每个签入中成功构建并部署到云(Azure)。但是,如果我想要构建它,我想知道如何修改它,但实际上并没有部署到Azure。只需在办理登机手续后建立,确保没有任何损坏,就是这样。我试过搜索并修改MSBuild参数,但无济于事。这应该很容易。我错过了什么?

这些是我插入的MSBuild参数。最后两个(DeployOnBuild和CreatePackageOnPublish)似乎根本不重要......不确定/ t:发布是否有任何区别

/t:Publish
/p:TargetProfile=Cloud
/p:DeployOnBuild=false
/p:CreatePackageOnPublish=false

谢谢!

1 个答案:

答案 0 :(得分:0)

关键是使用正确的构建过程模板:

Right click the build definition -> Edit Build definition
Process tab
Up at the top there is a section for the Build Process Template
Show Details
Select "DefaultTemplate" from the dropdown

流程选项卡中可用的选项与我使用的AzureContinuousDeployment模板不同。我不需要任何MSBuild参数(尽管你可能取决于你如何命名你的服务配置)。

之前我从未注意过这个模板。大多数人可能只是假设我已经使用了默认值!