【发布时间】:2018-07-24 17:43:55
【问题描述】:
我正在制作一个 asp.net 网络表单,在该表单中我需要在身份验证后在 TFS 中存在的所有项目,我已经通过以下代码完成了
var collectionUri = new Uri("https://project.visualstudio.com/DefaultCollection");
var credential = new NetworkCredential("username", "password");
var teamProjectCollection = new TfsTeamProjectCollection(collectionUri, credential);
teamProjectCollection.EnsureAuthenticated();
【问题讨论】: