如何以编程方式修改构建定义? [英] How to programmatically modify a build definition?

查看:128
本文介绍了如何以编程方式修改构建定义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试自动化相对复杂的构建过程。其中一部分涉及更新特定构建定义中的"构建数字格式"值,以便测试人员具有构建修订版号,以便编写错误。这个
构建定义更新是一个手动操作。是否可以通过编程方式修改构建定义字段,如果是,如何修改?



Richard Lewis Haggard

I'm attempting to automate a relatively complicated build process. Part of that involves updating the 'Build Number Format' value within a particular build definition so that the test people have a build revision number against which to write bugs. This build definition update is a manual operation. Can the build definition field be modified programmatically and, if so, how?


Richard Lewis Haggard

推荐答案

hi Richard

hi Richard

取决于您是否要使用XAML Build或Build vNext,您需要不同的API。

depending whether you want to use XAML Build or Build vNext you need different API.

您可以查看最近的发布的NuGet软件包
用于Visual Studio Online(和TFS)的.NET客户端库

you may take a look at the recently released NuGet packages .NET client libraries for Visual Studio Online (and TFS)

其中包含用于读取/修改两种构建定义类型的API。

which contains API to read / modify both build definition types.




这篇关于如何以编程方式修改构建定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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