Skip to content

[BUG] Outdated Microsoft.Graph.Core.dll in PnP.PowerShell #3735

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

Closed
YuriySamorodov opened this issue Feb 7, 2024 · 2 comments
Closed

[BUG] Outdated Microsoft.Graph.Core.dll in PnP.PowerShell #3735

YuriySamorodov opened this issue Feb 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@YuriySamorodov
Copy link
Contributor

Reporting an Issue or Missing Feature

I am reporting a bug.

Expected behavior

This is a follow up on #3395

When PnP.PowerShell and Microsoft.Graph modules are used ion the same script, it causes Get-PnPGroup -All to fail with the following error:

Get-MgGroup_List: Could not load type 'Microsoft.Graph.Authentication.AzureIdentityAccessTokenProvider' from assembly 'Microsoft.Graph.Core, Version=1.25.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

According to the blog post https://mortenknudsen.net/?p=2631, the old Microsoft.Graph.Core version 1.25.1.0 from 2021 seems to originate from the module dependencies of PnP.PowerShell.
image

image

In 2024 Microsoft.Graph.Core.dll has version 3.0.9.0
image

Any chance you can equip PnP.PowerShell with the newer version of Microsoft.Graph.Core.dll?

@YuriySamorodov YuriySamorodov added the bug Something isn't working label Feb 7, 2024
@gautamdsheth
Copy link
Collaborator

Closing as duplicate of
#3637

@gautamdsheth gautamdsheth closed this as not planned Won't fix, can't repro, duplicate, stale Feb 8, 2024
@nicole-ge
Copy link

Hi @gautamdsheth

Can we reopen this issue? It is a problem of pnp module loading the wrong msgraph core dll

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

3 participants