4

Steps: Create sample project from template in VS2022 (.NET 7) with authentication and Graph -> works

Update Graph Core to 3.01 and Graph to. 5.1 ->

Could not load type 'Microsoft.Graph.IAuthenticationProviderOption' from assembly 'Microsoft.Graph.Core

Please help

Benjamin79
  • 133
  • 2
  • 12
  • 1
    I can only guess but there is no support for Graph v5. https://github.com/AzureAD/microsoft-identity-web/issues/2097 – user2250152 Mar 09 '23 at 14:21
  • As mentioned above by user2250152, as it is not supported as of now, but there is Temporary solution: https://gist.github.com/ashelopukho/5b00944c7744ebb4f9baa348e86f7e0e – Mehtab Siddique Mar 15 '23 at 14:53

1 Answers1

0

I've managed to get it to work after replacing dependency Microsoft.Identity.Web.MicrosoftGraph with Microsoft.Identity.Web.GraphServiceClient.

https://github.com/AzureAD/microsoft-identity-web/blob/master/src/Microsoft.Identity.Web.GraphServiceClient/Readme.md