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

Closed
wants to merge 25 commits into
base: develop
from

Conversation

Projects
None yet
3 participants
@Redth
Contributor

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 some commits Jul 1, 2015

Add initial working Mono.CSharp support
.csx scripts cannot contain classes, methods, properties, etc. yet.
Added mono support for classes, methods, etc in special #region
You can now wrap classes, methods, properties, etc in #region "extras" //... #endregion in your .csx files
Added line offset for user code in Mono scripting
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!
Merge pull request #1 from patriksvensson/mono-support
Minor cleanup to make StyleCop happy.
Merge pull request #2 from patriksvensson/mono-support
Renamed RoslynScriptEngine file to reflect class name.
Merge pull request #3 from patriksvensson/mono-support
Renamed DotNetBuild alias to MSOrXBuild.
@patriksvensson

This comment has been minimized.

Member

patriksvensson commented Jul 12, 2015

Merged.

@gep13

This comment has been minimized.

Member

gep13 commented Jul 13, 2015

woot! 馃憤

@gep13 gep13 referenced this pull request Jul 17, 2015

Closed

Add Support For Roundhouse #285

@devlead devlead referenced this pull request Aug 13, 2015

Closed

Mono support #186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment