ewilde / crane

Crane creates builds scripts so you don't have to
http://blog.cranebuild.com
Apache License 2.0
6 stars 2 forks source link

[build template] cake support #54

Open ewilde opened 9 years ago

ewilde commented 9 years ago

https://github.com/cake-build/cake looks awesome

not sure is supports mono yet: https://github.com/cake-build/cake/issues/81

patriksvensson commented 9 years ago

Glad that you like Cake! :)

There is currently no Mono support for Cake, but this is something being worked on. Right now we rely on Roslyn to compile the scripts for us, but until the script support in Roslyn vNext (x-plat) is implemented, the plan is to use Mono.CSharp for Mono support. There has been a lot of issues with this though, so progress has been slow.

ewilde commented 9 years ago

@patriksvensson thanks for the comment. (love how github helps people discover things!)

Took a quick glance at the scriptcs project, seems like there is a mono build of scriptcs https://github.com/scriptcs/scriptcs/wiki/Installing-on-Mac-and-Linux, which uses Mono.CSharp https://github.com/scriptcs-contrib/scriptcs-engine-mono is that the one you were having issues with?

patriksvensson commented 9 years ago

Ah no. Cake does not use ScriptCs, but uses Roslyn directly.

The biggest problem we had with Mono.CSharp (https://www.nuget.org/packages/Mono.CSharp) is the errors that occur when capturing local variables in lambdas. Not sure if ScriptCs' script host have solved this.