【发布时间】:2016-03-06 14:46:20
【问题描述】:
我正在尝试从 TFS 查询一些工作项,但是在 GetService 时,我遇到了异常。谁能帮帮我。
ICredentials networkCredential = new NetworkCredential("XXX", "XX", "XXX");
Uri tfsUri = new Uri(@"http://tfs:8080/tfs/DefaultCollection");
TfsTeamProjectCollection tfs = new TfsTeamProjectCollection(tfsUri, networkCredential);
tfs.EnsureAuthenticated();
WorkItemStore Store = (WorkItemStore)tfs.GetService(typeof(WorkItemStore));
错误:
“System.IO.FileNotFoundException”类型的未处理异常 发生在 Microsoft.TeamFoundation.WorkItemTracking.Client.dll
附加信息:无法加载文件或程序集 'Microsoft.TeamFoundation.WorkItemTracking.Proxy,版本=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 或其其中之一 依赖关系。系统找不到指定的文件。
【问题讨论】: