构建 Workitem 存储时出现异常
Exception while building the Workitem store
我正在尝试从 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));
错误:
An unhandled exception of type 'System.IO.FileNotFoundException'
occurred in Microsoft.TeamFoundation.WorkItemTracking.Client.dll
Additional information: Could not load file or assembly
'Microsoft.TeamFoundation.WorkItemTracking.Proxy, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.
错误似乎很明显:您缺少 Microsoft.TeamFoundation.WorkItemTracking.Proxy
。安装 TFS 2012 对象模型并将对该程序集的引用添加到您的项目中。我说 2012 是因为版本 11.x
表示 TFS 2012。12 是 2013,14 是 2015。
我正在尝试从 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));
错误:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Microsoft.TeamFoundation.WorkItemTracking.Client.dll
Additional information: Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Proxy, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
错误似乎很明显:您缺少 Microsoft.TeamFoundation.WorkItemTracking.Proxy
。安装 TFS 2012 对象模型并将对该程序集的引用添加到您的项目中。我说 2012 是因为版本 11.x
表示 TFS 2012。12 是 2013,14 是 2015。