如何从批处理文件中的TFS中检索任务和错误列表?

时间:2021-08-03 02:20:50

I would like to access the work items in our TFS programmatically. Shouldn't there be an obvious command line tool to extract such information? Or a WebService I can just call? I already have checked into using Excel - this is neat, but I want more hardcore...

我想以编程方式访问TFS中的工作项。难道不应该有一个明显的命令行工具来提取这些信息吗?或者我可以打电话给WebService?我已经检查过使用Excel - 这很整洁,但我想要更多硬核......

2 个解决方案

#1


3  

Take a look at the TFS API (http://msdn.microsoft.com/en-us/library/bb130146(VS.80).aspx). Access to the same code used by Microsoft to create the Visual Studio integration and their version control command line tool (tf.exe).

看一下TFS API(http://msdn.microsoft.com/en-us/library/bb130146(VS.80).aspx)。访问Microsoft用于创建Visual Studio集成及其版本控制命令行工具(tf.exe)的相同代码。

You can also take a look at the power tools. tfpt.exe is the power tool command line and has many other advanced features. That said - you can do pretty much what you want with the SDK.

您还可以查看电动工具。 tfpt.exe是电动工具命令行,具有许多其他高级功能。也就是说 - 您可以使用SDK完成您想要的任务。

The new version of the power tools will be out soon, and that looks to have Powershell support coming

新版本的电动工具很快就会推出,而且看起来会有Powershell支持

Enjoy!

#2


1  

If you download tfs power tools you can use "tfpt query" to your advantage.

如果你下载tfs电动工具,你可以使用“tfpt query”。

#1


3  

Take a look at the TFS API (http://msdn.microsoft.com/en-us/library/bb130146(VS.80).aspx). Access to the same code used by Microsoft to create the Visual Studio integration and their version control command line tool (tf.exe).

看一下TFS API(http://msdn.microsoft.com/en-us/library/bb130146(VS.80).aspx)。访问Microsoft用于创建Visual Studio集成及其版本控制命令行工具(tf.exe)的相同代码。

You can also take a look at the power tools. tfpt.exe is the power tool command line and has many other advanced features. That said - you can do pretty much what you want with the SDK.

您还可以查看电动工具。 tfpt.exe是电动工具命令行,具有许多其他高级功能。也就是说 - 您可以使用SDK完成您想要的任务。

The new version of the power tools will be out soon, and that looks to have Powershell support coming

新版本的电动工具很快就会推出,而且看起来会有Powershell支持

Enjoy!

#2


1  

If you download tfs power tools you can use "tfpt query" to your advantage.

如果你下载tfs电动工具,你可以使用“tfpt query”。