How to show elements of custom data type in TFS custom build definition

161 Views Asked by At

Is it possible to show the sub elements of a custom datatype in the TFS build definition file? For example in the 'Agent setting' the menu expands to its sub elements in the same way I want to show the elements of my own datatype.

<x:Members>
<x:Property Name="BuildNumberFormat" Type="InArgument(x:String)" />
<x:Property Name="SolutionSpecificBuildOutputs" Type="InArgument(x:Boolean)" />
<x:Property Name="CleanWorkspace" Type="InArgument(mtbwa:CleanWorkspaceOption)" />
<x:Property Name="SourceAndSymbolServerSettings" Type="InArgument(mtbwa:SourceAndSymbolServerSettings)" />
**<x:Property Name="AgentSettings" Type="InArgument(mtbwa:AgentSettings)" />**
<x:Property Name="AssociateChangesetsAndWorkItems" Type="InArgument(x:Boolean)" />
<x:Property Name="CreateWorkItem" Type="InArgument(x:Boolean)" />
<x:Property Name="CreateLabel" Type="InArgument(x:Boolean)" />
<x:Property Name="GetVersion" Type="InArgument(x:String)" />
<x:Property Name="PrivateDropLocation" Type="InArgument(x:String)" />
<x:Property Name="Verbosity" Type="InArgument(mtbw:BuildVerbosity)" />
<x:Property Name="Metadata" Type="mtbw:ProcessParameterMetadataCollection" />
<x:Property Name="SupportedReasons" Type="mtbc:BuildReason" />
<x:Property Name="BuildProcessVersion" Type="x:String" />
**<x:Property Name="MapBuildConfig" Type="InArgument(ma:MyBuildConfig)" />**

In above code "AgentSettings" expands to its elements: Name filter, Tags filter so on.. But my custom type "MyBuildConfig does not expand to its elements...

Any help?

Thanks!

1

There are 1 best solutions below

0
On

Could be that you are looking for a Custom Process Parameter editor?

Before going that route I suggest to reuse existing editors like Bart suggests and adapting your custom type.