Question: Use v1.0 and beta endpoints in one project #73
-
Just wanted to raise some more "discussions" here and ask a question (and give one answer how I handle myself). Anyone using v1.0 AND beta endpoint together in the own project? I'd like to use the 5.0.0 but cannot due to one bug exactly in the beta endpoint I want to use AND Would love to hear your feedback. Concerns, different approaches and why? Helpful for you? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I guess with that you could do the following: using Azure.Identity;
using Microsoft.Graph;
using Microsoft.Graph.Models;
// This is the trick, we rename the namespace
using Beta = Microsoft.Graph.Beta;
// And then you can create 2 clients in the same file
var graphClient = new GraphServiceClient(interactiveCredential, scopes );
var betaClient = new Beta.GraphServiceClient(interactiveCredential, scopes ); |
Beta Was this translation helpful? Give feedback.
-
As the older 4.x.x version will have models and request builders with conflicting namespaces, The suggestion from @svrooij should work out. There also more similar instructions at the link below. |
Beta Was this translation helpful? Give feedback.
As the older 4.x.x version will have models and request builders with conflicting namespaces, The suggestion from @svrooij should work out. There also more similar instructions at the link below.
https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/tree/support/4.x#using-the-beta-client-along-with-the-v10-library