Samples showing how to properly construct a URL to a VSTS organization (formerly called "account") using either its name (e.g. "Fabrikam") or its GUID identifier.
Example of how to use the new helper:
public async Task DoSomething()
{
Uri orgUrl = OrganizationUrlHelpers
.GetConnectionUrl("myOrgName"); // typically resolves to https://myorgname.visualstudio.com
VssConnection orgConnection = new VssConnection(orgUrl, credentials);
BuildHttpClient buildClient = orgConnection.GetClient<BuildHttpClient>();
}
Samples showing how to properly construct a URL to a VSTS organization (formerly called "account") using either its name (e.g. "Fabrikam") or its GUID identifier.
Example of how to use the new helper: