无法通过C#代码连接到TFS [英] Not able to connect to TFS through C# code

查看:80
本文介绍了无法通过C#代码连接到TFS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好TFS团队,

我创建了一个Windows应用程序来连接到TFS 2013(dll版本是12.0)。

I created a windows application to connect to TFS 2013 (dll version is 12.0) .

< span style ="font-size:0.75em">工作正常。

现在我正在尝试使用TFS dll 15.0版检查相同的流程。 它部分工作。它主要在WorkItemStore(内部代码)失败。

Now I am trying to check the same flow with TFS dll version 15.0.  It is partially working. It is failing mainly at WorkItemStore (inside code).

我的笔记本电脑上安装了VS 2013和VS 2017.

I have both VS 2013 and VS 2017 installed on my laptop.

错误 :"无法加载DLL'Microsoft.WITDataStore64.dll':找不到指定的模块。 (HRESULT的例外情况:0x8007007E)"

Error is: "Unable to load DLL 'Microsoft.WITDataStore64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"

我尝试了以下选项:


  • 我制作了"复制本地"项目引用中的属性为true。
  • 我复制了"Microsoft.WITDataStore64.dll" 直接进入bin文件夹。

问题仍然存在。你能否就如何解决这个问题提出建议..

The problem still exists. Can you suggest on how to fix this..

推荐答案

嗨ashanice,

Hi ashanice,

只需安装
Microsoft.TeamFoundationServer.ExtendedClient包
到您的项目(不要在本地添加程序集引用机器)。

Just install Microsoft.TeamFoundationServer.ExtendedClient package to your project (do not add assembly reference in local machine).

问候


这篇关于无法通过C#代码连接到TFS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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