Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mono support #280

wants to merge 25 commits into from

Mono support #280

wants to merge 25 commits into from


Copy link

@Redth Redth commented Jul 8, 2015

This adds basic mono support and XBuild support.

For scripts that have defined classes, properties, or methods, you will need to wrap them in #region "Extras" code regions to be properly processed. This is a current limitation of the mono scripting and should eventually be fixed.

You can invoke XBuild to build projects and solutions. There is also a MSOrXBuild alias which will route to MSBuild on windows and XBuild on linux/mac. You can still explicitly use XBuild on windows if you like.

There are still some limitations in locating tools used in some aliases, but the basic scripting itself should be functional 馃憤

Redth and others added 15 commits Jul 1, 2015
.csx scripts cannot contain classes, methods, properties, etc. yet.
You can now wrap classes, methods, properties, etc in #region "extras" //... #endregion in your .csx files
Since there's so much code generated around the user code, the warnings/errors will contain line numbers that only make sense in the context of the entire generated code body.  This will write out the offset of where the user code starts so the user can at least do some quick math to figure out where in their code a given error occurs.  Should really look into seeing if we can augment the line # that Mono scripting outputs with this offset, but this is better than nothing for now!
Minor cleanup to make StyleCop happy.
Renamed RoslynScriptEngine file to reflect class name.
Renamed DotNetBuild alias to MSOrXBuild.
Copy link

@patriksvensson patriksvensson commented Jul 12, 2015


Copy link

@gep13 gep13 commented Jul 13, 2015

woot! 馃憤

@gep13 gep13 mentioned this pull request Jul 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants