Open 3vi1 opened 5 years ago
Looks like this type isn't ported to .NET Core yet: https://github.com/dotnet/corefx/issues/27126
It installs always the "desk" version of the module. (Same problem as installing it into Azure Cloud Shell)
Same issue here. Trying to execute Intune cmdlets from a "deploymentscript" resource within an ARM Template. Under the hood a Azure Powershell Container is started where the exact same error occurs when running "connect-msgraph"
Any updates from the team on this issue? See: https://github.com/dotnet/runtime/issues/25044#issuecomment-520203003
Same issue here...
I have .NET Framework 4.8 installed and cannot install a lower version (4.7.1, for example).
EDIT: So I was running this in Powershell 7. When I opened it in the default PS that comes with Windows 10 it ran fine. Very bizarre.
3 years later, still not resolved Powershell 7.26 running on Ubuntu 22.04 `Connect-MSGraph -ClientSecret $clientSecret
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Could not load type 'System.Security.Cryptography.SHA256Cng'
| from assembly 'System.Core, Version=4.0.0.0, Culture=neutral,
| PublicKeyToken=b77a5c561934e089'.
`
Just adding comment to hopefully raise this for attention as a solution was proposed https://github.com/dotnet/runtime/issues/25044#issuecomment-520203003
Steps to reproduce
(Note: exact same results with up-to-date pwsh-preview.)
Expected behavior
Actual behavior
Environment data
This was tested with core 6 as well as the current pwsh-preview (PowerShell 7) github build from source (as of 8/6/2019) as well as current pwsh & pwsh-preview snaps on Ubuntu 18.04 and Ubuntu 19.10 (Eoan Ermine). See https://github.com/PowerShell/PowerShell/issues/10291.
I also reported this bug in the PowerShellModuleCoverage repo, https://github.com/PowerShell/PowerShellModuleCoverage/issues/9#event-2541388639, but they closed it and suggested I open it here. I'm not sure if it's because SHA256Cng is deprecated or if there's other reasoning.