Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support Microsoft Graph v5 #211

Open
2 tasks done
skst opened this issue Jun 7, 2024 · 0 comments
Open
2 tasks done

Does not support Microsoft Graph v5 #211

skst opened this issue Jun 7, 2024 · 0 comments
Labels
bug 🐛 Something isn't working

Comments

@skst
Copy link

skst commented Jun 7, 2024

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:

  1. Unzip the attached project.
  2. Insert your client ID in CTG5.cs.
  3. Build and run.
  4. Click on 'Do Stuff' button.
  5. 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)
@skst skst added the bug 🐛 Something isn't working label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant