Ever consider including Interactive for use in a framework world, e.g.
ConnectGraph.cs
#if NETFRAMEWORK
clientApplication = (authProvider as InteractiveAuthenticationProvider).ClientApplication;
#else
clientApplication = (authProvider as DeviceCodeProvider).ClientApplication;
#endif
AuthenticationHelper.cs
#if NETFRAMEWORK
return new InteractiveAuthenticationProvider(publicClientApp, authContext.Scopes);
#else
return new Microsoft.Graph.Auth.DeviceCodeProvider(publicClientApp, authContext.Scopes, async (result) =>
{
await Console.Out.WriteLineAsync(result.Message);
});
#endif
AB#7398