How to put build process parameters into categories in TFS?

我们两清 提交于 2019-12-10 10:27:16

问题


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



来源:https://stackoverflow.com/questions/18576380/how-to-put-build-process-parameters-into-categories-in-tfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!