SharpeRAD / Cake.Powershell

Powershell addin for Cake
http://cakebuild.net
MIT License
83 stars 36 forks source link

Cross platform support #12

Closed tirolo closed 3 years ago

tirolo commented 7 years ago

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: image

Ideas?

SharpeRAD commented 7 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.

lprichar commented 5 years ago

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)
SharpeRAD commented 5 years ago

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.

SharpeRAD commented 5 years ago

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.

AdaskoTheBeAsT commented 3 years ago

Done in https://github.com/SharpeRAD/Cake.Powershell/pull/83 please review