【发布时间】:2012-12-01 00:09:18
【问题描述】:
我遇到了一个奇怪的问题。我想以编程方式使用 tfs api 连接 tfs 服务器。 即使在提供了正确的 authentcaion crdiatials 之后它也会失败。但是如果我通过在浏览器中输入 tfs 服务器名称来手动执行它,它就会连接。
代码:
TeamFoundationServer tfs = new TeamFoundationServer(new Uri("http://10.112.205.145:8080/tfs"), new NetworkCredential(@"usrname", "pwd", "domain"));
tfs.EnsureAuthenticated()
请提出建议。
【问题讨论】: