Closed tirolo closed 3 years ago
Haven't looked into it but it would be cool if it was cross platform 😉
I think the issue is going to be with "System.Management.Automation.dll" and its dependency chain, I know Powershell is on Github now so that's probably the best place to start.
It might be nice to at least give a "not supported on this platform" kind of error, I spent a while trying to figure this out. Here's the SEO friendly version of the error btw:
Error: System.AggregateException: One or more errors occurred. --->
System.InvalidProgramException: Invalid IL code in
System.Management.Automation.Runspaces.RunspaceFactory:CreateRunspace
(System.Management.Automation.Host.PSHost)
I'm not convinced that's the responsibility of the add-in. The issue has remained open and is obviously easily to find, so the most constructive thing I can do is add a "up-for-grabs" label in the hope that someone will find the time to make this add-in cross platform.
I've Merged a PR for partial Linux support but will leave this open in case anyone wants to explore full cross platform support in the future.
Done in https://github.com/SharpeRAD/Cake.Powershell/pull/83 please review
First of all big thanks for the extension, it's awesome!
I was just wondering as PS and cake are cross platform it would be great to make this addin work cross platform as well (or maybe it is and I'm missing something?). I have absolutely no idea where to start on this one but would be more than happy to give a hand.
I tried running it on my mac and this is the output:
Ideas?