我正在使用Team Foundation Server API尝试连接到远程服务器。在Team Foundation Server 2010中检测团队项目集合
从我的应用程序中,我尝试连接到形式为https://some-tfs-location.example.com/tfs的URL,但是当这样做时,我得到一个错误TF50309(讨论here)。如果我将项目集合添加到URL的末尾(所以路径变为tfs/101
),那么我可以连接没有问题。
我想尝试和模仿Visual Studio的行为,我可以给它一个URL而不需要指定项目集合,它会连接并找到项目集合。
有没有人有任何建议,我可以使用API来模仿Visual Studio的行为?我希望通过
TfsTeamProjectCollection ttpc = new TfsTeamProjectCollection(projectRoot.ServerUrl,new MyCredentials());
var projectCollection = ttpc.CatalogNode.FullPath;
找到该项目集合但是,这会导致TF50309错误代码相同。
谢谢,这工作的一种享受! –