You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think, it is a big disadvantage to not have the .NET Client Library Microsoft.TeamFoundationServer.Client included in the OAuthWebSample. That makes things soo much more simple.
The following is the only missing code, once the access token is retrieved. Please update the sample.
VssOAuthAccessTokenCredential credentials = new VssOAuthAccessTokenCredential(AccessToken); VssConnection connection = new VssConnection(new Uri("https://dev.azure.com/[your org]"), credentials); var client = connection.GetClient<ProjectHttpClient>(); var projects = client.GetProjects().Result;
Of course, you also need to add the nuget package Microsoft.TeamFoundationServer.Client to your web project first.
The text was updated successfully, but these errors were encountered:
I think, it is a big disadvantage to not have the .NET Client Library Microsoft.TeamFoundationServer.Client included in the OAuthWebSample. That makes things soo much more simple.
The following is the only missing code, once the access token is retrieved. Please update the sample.
VssOAuthAccessTokenCredential credentials = new VssOAuthAccessTokenCredential(AccessToken);
VssConnection connection = new VssConnection(new Uri("https://dev.azure.com/[your org]"), credentials);
var client = connection.GetClient<ProjectHttpClient>();
var projects = client.GetProjects().Result;
Of course, you also need to add the nuget package Microsoft.TeamFoundationServer.Client to your web project first.
The text was updated successfully, but these errors were encountered: