0

I am working on a asp.net core MVC project and want to use Graph and GrahBeta packages using Microsoft.Identity.Web.MicrosoftGraph adn Microsoft.Identity.Web.MicrosoftGraphBeta.

I define an external alias for the beta version of the package as described here: https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet#using-the-beta-client-along-with-the-v10-library

This works as excpected, but in Startup.cs, when registering Graph like

services.AddAuthentication[...].AddMicrosoftGraph(Configuration.GetSection("GraphAPI"))

I get the following error:

The call is ambiguous between the following methods or properties: 'Microsoft.Identity.Web.MicrosoftGraphExtensions.AddMicrosoftGraph(Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, string, string)' and 'Microsoft.Identity.Web.MicrosoftGraphExtensions.AddMicrosoftGraph(Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, string, string)'

As this seems to come from the exact same package, I have no idea about how to handle this. Thank you for your help.

Tiny Wang
  • 10,423
  • 1
  • 11
  • 29
Agyss
  • 160
  • 1
  • 15
  • Similar issue:https://stackoverflow.com/questions/70380096/error-the-call-is-ambiguous-between-the-following-methods-or-properties-usemy – Mehtab Siddique Jan 16 '23 at 14:58

0 Answers0