Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2008 VisualStudio2008的Team Build 2005中的生成报告API 我们的车间是用Team Foundation 2005服务器建立的,但是所有开发工作都是在Visual Studio 2008中完成的。_Visual Studio 2008_Api_Build Process_Tfs 2005 - Fatal编程技术网

Visual studio 2008 VisualStudio2008的Team Build 2005中的生成报告API 我们的车间是用Team Foundation 2005服务器建立的,但是所有开发工作都是在Visual Studio 2008中完成的。

Visual studio 2008 VisualStudio2008的Team Build 2005中的生成报告API 我们的车间是用Team Foundation 2005服务器建立的,但是所有开发工作都是在Visual Studio 2008中完成的。,visual-studio-2008,api,build-process,tfs-2005,Visual Studio 2008,Api,Build Process,Tfs 2005,我希望能够编写一个程序,检查给定构建定义的构建历史,并提取测试结果,以生成团队构建实际上没有给出的那种漂亮的图形 但是,我很难从TFSAPI中获取构建服务。在VS2008中引用TeamFoundationClient DLL显然会得到TFS2008客户端对象,TFS2005允许我连接,但我无法查询2008构建服务器服务: TeamFoundationServer teamServer = TeamFoundationServerFactory.GetServer(m_tfsServerName)

我希望能够编写一个程序,检查给定构建定义的构建历史,并提取测试结果,以生成团队构建实际上没有给出的那种漂亮的图形

但是,我很难从TFSAPI中获取构建服务。在VS2008中引用TeamFoundationClient DLL显然会得到TFS2008客户端对象,TFS2005允许我连接,但我无法查询2008构建服务器服务:

TeamFoundationServer teamServer = TeamFoundationServerFactory.GetServer(m_tfsServerName);
teamServer.EnsureAuthenticated();

IBuildServer buildServer;
try
{
    buildServer = (IBuildServer)teamServer.GetService(typeof(IBuildServer));
}
catch(Exception ex)
{
    // Error thrown:
    // System.NotSupportedException
    // "TF214015: The build client object model does not support Team Foundation Server 2005."
}
我在使用2005 API时发现了以下帖子:

但是,BuildStore对象不再是2008客户端对象模型的一部分。我可以以任何方式访问2005客户端DLL吗?我可以在我的开发人员机器上安装TeamExplorer来获得VS2005,但是有更简单的方法吗?我是否也能够从VS2008项目中引用2005年安装的某些DLL(哪些??),或者在VS2005中简单地开发这个东西会不会不那么痛苦


我还可以尝试其他方法吗?(BuildLogger在构建时收集信息并自己存储;一种解析.trx文件的方法(我是否提到过我们每个单元测试运行有多个trx文件?);使用TFS报告(尽管我们的报告服务在TFS安装时中断)等?

如果您安装Team Explorer 2005,您可以从VS2008访问所需的DLL。但是,它们没有显示在VS2008“添加引用”对话框的.NET选项卡下,我必须在Team Explorer 2005的已安装文件夹中浏览到它们

我安装了VS2005,因此对我来说,DLL最终位于程序文件\Microsoft Visual Studio 8\Common7\IDE\PrivateAssembly中\

我需要为构建历史的基本枚举和检查测试结果添加引用的DLL有:

  • Microsoft.TeamFoundation.Client
  • Microsoft.TeamFoundation.Common
  • Microsoft.TeamFoundation.Build.Client
  • Microsoft.TeamFoundation.Build.Common