Description
Describe the bug
Simply running Connect-MgGraph
with the latest version produces the following error message. I've spent an almost 2 hours trying to get this to work on my system and its had me pulling my hair out.
Connect-MgGraph: Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
This is on my personal computer Windows 11 also tested the same result on one of my Server 2022 VMs.
I've tried:
- Deleted and reinstalled the Microsoft.Graph module a bunch of times
- Installing the latest .Net 8 Runtime
- Installing the latest .Net 8 Desktop Runtime
- Installing the latest .Net 8 SDK
- Tried manually importanting System.Runtime.dll assembly
- I've checked my Defender AV isn't catching something
- I've change my ExecutionPolicy
- Restarted Computer a couple of times
- Run a thousand new powershell sessions after every attempted solution
- Ran it on a different system and OS
Just my freaking luck that I've been using and installing MgGraph for 4-5 hours today for work and after work I go to fix something for my club on my home computer and a broken update of Microsoft.Graph just so happens to have been released in that time.
If it wasn't for me having been installing MgGraph just earlier today I might not have finally thought "I'm sure the latest version of MgGraph I installed just hours ago was 2.25.0".
Expected behavior
I get an interactive logon.
How to reproduce
Install-Module -Name Microsoft.Graph
- Attempt to run
Connect-MgGraph
SDK Version
2.26.0
Latest version known to work for scenario above?
No response
Known Workarounds
Roll back to 2.25.0.
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_