Skip to content

Instantly share code, notes, and snippets.

@DanijelMalik
Created May 7, 2017 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanijelMalik/2f1ee3180018fdb1d4a44decbc5fe06e to your computer and use it in GitHub Desktop.
Save DanijelMalik/2f1ee3180018fdb1d4a44decbc5fe06e to your computer and use it in GitHub Desktop.
public TfsHelper(Uri uri, string username, string password)
{
_tfsServer = new TfsTeamProjectCollection(uri, new VssAadCredential(username, password));
_buildServer = _tfsServer.GetService<IBuildServer>();
_versionServer = _tfsServer.GetService<VersionControlServer>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment