Mono support #280
Closed
Mono support #280
Conversation
.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.
Added Mono.CSharp bootstrapper.
Fix for StyleCop.
Improved Tool resolution
Restored removed functionality in NuGetToolResolver.
Merged. |
woot! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
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 aMSOrXBuild
alias which will route toMSBuild
on windows andXBuild
on linux/mac. You can still explicitly useXBuild
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👍