Does not support Microsoft Graph v5
还没有人认领这个 Issue。
评估
调研方向
使用附加的项目和列出的包版本,并采用 CTG5.cs 中的客户端 ID 设置,重现该故障。从报告的 TypeLoadException 开始跟踪 ProviderExtensions.GetClient,并检查 CommunityToolkit.Graph 与 Microsoft.Graph 5.56.0 的兼容性。当示例的“Do Stuff”操作在没有异常的情况下完成时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Does CommunityToolkit still support the Graph-Controls library?
If so, it would be great if it could be updated to support Microsoft Graph v5.
Describe the bug
ProviderManager.Instance.GlobalProvider.GetClient() throws TypeLoadException.
System.TypeLoadException
HResult=0x80131522
Message=Could not load type 'Microsoft.Graph.AuthenticateRequestAsyncDelegate' from assembly 'Microsoft.Graph.Core, Version=3.1.12.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Source=CommunityToolkit.Graph
StackTrace:
at CommunityToolkit.Graph.Extensions.ProviderExtensions.GetClient(IProvider provider)
at CTG5.CTGraph.<<CommunityToolkit_DoOneDriveStuffAsync>g__OnProviderStateChanged|2_0>d.MoveNext() in D:\sandbox\CommunityToolkit.Graph\CTG5.cs:line 40
Steps to Reproduce
Steps to reproduce the behavior:
- Unzip the attached project.
- Insert your client ID in CTG5.cs.
- Build and run.
- Click on 'Do Stuff' button.
- See exception.
Expected behavior
No exception.
Environment
NuGet Package(s):
<PackageReference Include="CommunityToolkit.Authentication.Msal" Version="7.1.4" />
<PackageReference Include="CommunityToolkit.Graph" Version="7.1.4" />
<PackageReference Include="Microsoft.Graph" Version="5.56.0" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.19.0" />
Windows 10 Build Number:
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
Device form factor:
- Desktop
Visual Studio
- 2022.10
## Project with error
[CommunityToolkit.Graph v5.zip](https://github.com/user-attachments/files/15709654/CommunityToolkit.Graph.v5.zip)
- 主要语言
- C#
- 星标
- 156
- 派生
- 37
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CommunityToolkit/Graph-Controls 的其他 Issue
-
CommunityToolkit.Authentication.Msal use Microsoft Graph V4 but if you install V5,you cannot release未关闭bug :bug: needs attention :wave: needs triage :mag:
难度 4/5 3-5 天 新手友好度 25/100
CommunityToolkit/Graph-Controls#208 · 20 条评论 ·
-
enhancement :sparkles:
难度 2/5 1-3 小时 新手友好度 35/100
-
Area: Providers
难度 2/5 1-3 小时 新手友好度 55/100
CommunityToolkit/Graph-Controls#195 · 1 条评论 ·
-
Area: Providers bug :bug:
难度 4/5 3-5 天 新手友好度 35/100
CommunityToolkit/Graph-Controls#189 · 3 条评论 ·
-
Area: Providers documentation :page_with_curl: question :grey_question:
难度 4/5 3-5 天 新手友好度 35/100
CommunityToolkit/Graph-Controls#188 · 6 条评论 ·
查看 CommunityToolkit/Graph-Controls 的全部 Issue
相似的 Issue
-
area: core bug help wanted ready
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
area: remote bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
难度 2/5 1-3 小时 新手友好度 70/100
CodeYourFuture/Module-Tools#712 ·
-
A: Mapping P3: Standard T: New Feature
难度 2/5 1-3 小时 新手友好度 68/100
space-wizards/space-station-14#46878 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 半天 新手友好度 60/100
CommunityToolkit/Windows#896 · 2 条评论 ·