This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TfsConnection | |
{ | |
public static TfsTeamProjectCollection Connect() | |
{ | |
string url = "https://xxx:8081/tfs/"; | |
ICredentials credential = CredentialCache.DefaultCredentials; | |
var server = new TfsTeamProjectCollection(new Uri(url), credential); | |
return server; |