使用Visual Studio Online/TFS 2015 Api创建TFS源分支 [英] Create TFS Source Branch using Visual Studio Online / TFS 2015 Api

查看:69
本文介绍了使用Visual Studio Online/TFS 2015 Api创建TFS源分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人知道如何使用VSO Api创建分支. 分支的文档不包含创建".

Does anyone know how to create a branch using the VSO Api. The documentation for Branches doesn't include a "create".

我一直在尝试通过 ChangeSet 没成功的Api.

I have been experimenting with doing it via the ChangeSet Api without much success.

这是TFVC,不是Git.

This is TFVC, not Git.

推荐答案

就像在分支"页面中看到的一样,没有任何方法可以使用Rest API创建分支.在大多数情况下,您现在只能使用版本控制API读取/获取信息.

Just as what you see in "Branches" page, there isn't any way to create branch with the Rest API. And mostly, you can only read/get the information with the Version Control API for now.

我建议您使用客户端对象模型参考如果要以编程方式管理版本控制.若要创建分支,请在 Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer 类.

I would recommend you to use Client Object Model Reference if you want to manage the Version Control programmatically. To create a branch, use the "CreateBranch()" method in Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer class.

这篇关于使用Visual Studio Online/TFS 2015 Api创建TFS源分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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