msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

0.5.0 cmdlets referencing microsoft.graph.authentication version 0.2.0.0

Open MichaelLaMontagne opened this issue 6 years ago • 4 comments

installed latest version on PSGallery 0.5.0 via Install-Module Microsoft.Graph -Repository PSGallery -force. Able to use connect-graph but running get-mguser or other cmdlets returns: "Get-MgUser : Could not load file or assembly 'Microsoft.Graph.Authentication, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

MichaelLaMontagne avatar May 02 '20 21:05 MichaelLaMontagne

Looks like it works with PowerShell 7.0.

NikCharlebois avatar May 04 '20 15:05 NikCharlebois

We've tacked this issue to a hard dependency issue with PowerShell 5.1. As @nickgmicrosoft said, it works with PowerShell 7.0. We are currently working on a fix on our end to address this.

peombwa avatar May 04 '20 16:05 peombwa

This has now been fixed by 0.5.1. Run Update-Module Microsoft.Graph​​​​​​​ to get the latest modules.

peombwa avatar May 07 '20 01:05 peombwa

Confirmed resolution.

MichaelLaMontagne avatar May 07 '20 02:05 MichaelLaMontagne