What is the equivalent of VersionControlLabel and VersionControlServer in VSTS REST API

  • Thread starter Thread starter IndusKing
  • Start date Start date
I

IndusKing

Guest
My <g class="gr_ gr_13 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" data-gr-id="13" id="13">teams</g> projects have been migrated to Git under VSTS. My current project that is not in VSTS has references to VersionControlLabel because the project was written to target TFS API.

I'm currently trying to upgrade my current project to connect to VSTS and I can connect to the project using the following C# code:


VssConnection connection = new VssConnection(new Uri(vstsOrTfsCollectionUrl), new VssClientCredentials());

//The ProjectHttpClient
ProjectHttpClient projectClient = connection.GetClient<ProjectHttpClient>();

//Retrieves a BuildHttpClient so we can interogate the Builds for a given project
BuildHttpClient buildServer = connection.GetClient<BuildHttpClient>();

//Get Basic Project - Shallow Reference
IEnumerable<TeamProjectReference> projects = projectClient.GetProjects().Result;

//Create client for GIT
GitHttpClient gitClient = connection.GetClient<GitHttpClient>();

TeamProject theProject = projectClient.GetProject(projectName).Result;

List<GitRepository> gitRepositoryList = gitClient.GetRepositoriesAsync(theProject.Name).Result;
Is there an equivalent of this in the new REST API that Microsoft has released because <g class="gr_ gr_30 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" data-gr-id="30" id="30">i</g> would like to access the changeset/commit information of the project(s)
that are currently in Git.

Continue reading...
 
Back
Top