我正在使用TFS API连接到Team Foundation Server.在服务器URI中,我传递服务器的主机名.我收到错误的URI格式错误.
teamFoundationServer = new TfsTeamProjectCollection(new Uri(this.Server,UriKind.Absolute),this.Credentials); teamFoundationServer.EnsureAuthenticated();
我认为您需要Team Project Collection的URL,而不仅仅是服务器,可能:
http://server:8080/tfs/collection
Run Code Online (Sandbox Code Playgroud)
有一个在MSDN上连接但是它遍历TFS实例上的所有项目集合的示例,但是使用该示例代码,您可以检查TfsTeamProjectCollection.Uri以确认要使用的正确URI.
归档时间: |
|
查看次数: |
5989 次 |
最近记录: |