如何将构建过程参数放入 TFS 中的类别中? [英] How to put build process parameters into categories in TFS?

查看:21
本文介绍了如何将构建过程参数放入 TFS 中的类别中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开一个构建定义时,我可以看到参数被分成带有数字前缀的部分,例如1. 基本,2. 杂项等

When I open up a build definition I can see the arguments are split into sections with a number prefix e.g. 1. Basic, 2. Misc etc.

但是,当我编辑 xaml 时,没有任何关于这些类别定义位置的指示.有人可以就它们在参数列表中的位置提供一些指导吗?

However, when I edit the xaml there is no indication as to where these categories are defined. Can someone provide some guidance as to where they are located within the arguments list?

这里有一个类似的问题,除了海报根据构建设置询问了不同的参数,我认为这与常规参数不同.

Here is a similar question except the poster has inquired about a different parameter based off the build settings which I believe is a different case than regular parameters.

TFS DefaultTemplate.xaml 中缺少 ProcessParameterMetadata:其中是为了例如在必需类别中构建的项目

推荐答案

您可以打开构建模板并编辑 Metadata 参数,如下图所示:

You can open the build template and edit the Metadata argument as shown in the picture below:

然后您可以编辑类别:

在 XML 中没有独立的类别.您可以在 Process.Metadata 部分定义类别:

In the XML there is no category as standalone. You can define the category in the Process.Metadata section:

<this:Process.Metadata>
<mtbw:ProcessParameterMetadataCollection>
  <mtbw:ProcessParameterMetadata Category="#300 Advanced" Description="Enable MSBuid Multi-proc to build your solutions' projects in parallel, when possible, using all available processors on the build server." DisplayName="MSBuild Multi-Proc" ParameterName="MSBuildMultiProc" />
  ....

</mtbw:ProcessParameterMetadataCollection>
</this:Process.Metadata>

这是添加新类别,但我不知道标准类别在哪里.

This is to add new categorys but i dont know where the standard categories are.

希望对你有帮助.

亲爱的

这篇关于如何将构建过程参数放入 TFS 中的类别中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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