在自定义Web应用程序中从TFS获取数据 [英] get data from TFS in custom web application

查看:86
本文介绍了在自定义Web应用程序中从TFS获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从TFS(Team Foundation Server)中提取一些数据,并使用数据创建一些Excel工作表.为了使其自动化,我正在编写一个应用程序.

但是问题是:
如何从TFS获取数据?是否有任何可用的Web服务,或者我需要解析HTML,然后获取数据.

I need to extract some data from TFS (Team Foundation Server) and create some excel sheet with data. To automate it, I am writing an application .

But problem is:
How can I get data from TFS? Is there any webservice available for this or I need to parse HTML and then get the data.

推荐答案

否. TFS具有广泛的API,并且有两种形式:对象模型和REST.

No. TFS has broad coverage APIs and came in two flavors: Object Model and REST.

在安装Visual Studio/Team Explorer时会自动安装对象模型,否则可以使用独立MSI .这是一个.NET API,但也可以在需要时找到Java版本. OM对于.Net开发人员来说很简单.

The Object Model is automatically installed when you install Visual Studio / Team Explorer, otherwise you can use the stand-alone MSI. This is a .NET API, but you can also find the Java version in case you need it. The OM is simple to use for a .Net developer.

REST API 是新的,您应该研究它们是否满足您的要求.某些API仅在VSO上受支持,而在TFS本地版本和较旧版本中会丢失.

The REST API are kind of new and you should study if they satisfy your requirement. Some APIs are supported only on VSO and they miss from TFS on-premise and older versions.

这篇关于在自定义Web应用程序中从TFS获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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