Upgrade Graph SDK to 5.0 – Reference to type IAuthenticationProvider claims it is defined in Microsoft.Graph.Core, but cannot be found

huangapple go评论99阅读模式
英文:

Upgrade Graph SDK to 5.0 - Reference to type IAuthenticationProvider claims it is defined in Microsoft.Graph.Core, but cannot be found

问题

以下是要翻译的内容:

Steps:
在VS2022中使用.NET 7从模板创建示例项目,带有身份验证和Graph -> 可以正常工作

将Graph Core升级到3.01和Graph到5.1 ->

无法从程序集‘Microsoft.Graph.Core’加载类型‘Microsoft.Graph.IAuthenticationProviderOption’

请帮忙。

英文:

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

答案1

得分: 1

我已成功使其正常工作,只需将依赖项 Microsoft.Identity.Web.MicrosoftGraph 替换为 Microsoft.Identity.Web.GraphServiceClient

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

英文:

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

huangapple
  • 本文由 发表于 2023年3月9日 21:53:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/75685555.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定