Closed silverqx closed 2 years ago
Yep, please fix this, or tell us how to work around it. Seem to be an old problem...
InvalidOperation: Method invocation failed because [System.AppDomain] does not
contain a method named 'DefineDynamicAssembly'.
InvalidOperation: You cannot call a method on a null-valued expression.
...
The work around is to use powershell 5 or lower. I think it needs a large rewrite to work for powershell 7.
The following references seem to suggest otherwise:
I'll gladly accept a pull request with the needed changes.
@egru well that's not gonna happen. I'm obviously not a PS programmer and even less so a .NET fan. If I knew how to fix it, you'd have a PR already!
The latest commit fixes the issue with PowerShell Core.
@egru Thank you so much Eric, for taking the time for a patch! 💯
Thx @egru I have tested it on PS5 and pwsh core and it works great 👌.
Module works fine on PS 5, but when I try it on PS 7 then I get many errors, I'm attaching the output file: output.txt