【发布时间】:2016-09-11 20:10:54
【问题描述】:
我在 MS Team Foundation Server 上以特定用户身份进行身份验证时遇到问题。在旧版本中,它看起来像:
teamFoundationCredential = new System.Net.NetworkCredential("<USERNAME>", "<PASSWORD>", "<DOMAIN>");
TeamFoundationServer tfs = new TeamFoundationServer("http://mars:8080/", teamFoundationCredential);
谁能告诉我 2010 版的等效版本。到目前为止,我有:
ICredentialsProvider cred = null;
tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("http://asebeast.cpsc.ucalgar.ca:8080/tfs/DefualtCollection"));
tfs.EnsureAuthenticated();
谢谢
【问题讨论】:
标签: tfs