我正在尝试通过以下方法加载TFS WorkItemStore(见下文),它为WorkItemStore返回一个空值。
TfsTeamProjectCollection teamProjectCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri(tfsServer + "/" + collection));
//Authenticate with current logged on user
teamProjectCollection.Authenticate();
//Setup store and project based on app config settings
workItemStore = teamProjectCollection.GetService<WorkItemStore>();
我还尝试通过以下方式加载WorkItemStore,但这会引发异常:System.TypeInitializationException
workItemStore = teamProjectCollection.GetService<WorkItemStore>();
任何帮助将不胜感激!
谢谢,
克里斯