英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论