-->

How to put build process parameters into categorie

2019-05-17 21:31发布

问题:

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.

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.

Missing ProcessParameterMetadata in TFS DefaultTemplate.xaml: where is for e.g. Items to Build in the Required category

回答1:

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

Then you can edit the category:

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.

Hope that helped you.

Chears