Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting TFS build definition metadata programmatically

I would like to get and then edit, programmatically, all of the process paramater metadata from a TFS build definition. Does anyone know how to do that? Thank you.

like image 979
user1475722 Avatar asked May 24 '26 22:05

user1475722


1 Answers

It depends on what you are after, many of the standard build properties can be set using the TFS Team Project Manager application, available on CodePlex.

Updated based on comments below.

You need to use the TFS API. There's a good intro here. If you need to set custom attributes, you can modify the ProcessParameters (and MSDN)

The ProcessParameters only has entries when the parameter is different to the Default. Try editing an existing build definition and changing a setting to a non-default value. The BuildSettings has the path to the Solution to be built and the configuration to use. This is probably where you want to edit the path to match your branch. Also you need to change the Workspace.Mappings property on the new build definition.

like image 167
DaveShaw Avatar answered May 27 '26 20:05

DaveShaw