Could not load file or assembly 'mscorlib' on macOS
See original GitHub issueI’m setting up CI to ensure my assembly-based module (PsHosts) runs on Linux and macOS. The process builds on Appveyor/Windows since I’m targetting .NET 4.0 (for compat back to PS3) - the TravisCI builds then install the module from a MyGet feed and run the pester tests.
The Appveyor and Travis Linux builds are both fine, but on Travis macOS calling any of the Cmdlets inside the assembly throw an error:
Could not load file or assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’. Could not find or load a specific file. (Exception from HRESULT: 0x80131621)
Is this a known issue on macOS? Should I just hold off testing on macOS until a particular release/milestone?
I’m using PowerShell’s install-powershell.sh
to bootstrap PS in the Travis builds.
Links to build logs if you’re interested:
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (9 by maintainers)
Confirmed that #4506 fixed the issue. Thanks Travis!
Root cause was found, and filed issue #4505