Skip to content

Instantly share code, notes, and snippets.

View mayankiitg's full-sized avatar

Mayank Gupta mayankiitg

  • Microsoft
  • Seattle
View GitHub Profile
Identity amit;
string projectName = "VSOnline";
Guid projectId;
{
ProjectHttpClient client = connection.GetClient<ProjectHttpClient>();
var projects = client.GetProjects().SyncResult();
projectId = projects.Single(s => StringComparer.OrdinalIgnoreCase.Equals(s.Name, projectName)).Id;
}
{