mcs-ICodeCompiler icon indicating copy to clipboard operation
mcs-ICodeCompiler copied to clipboard

Issue when trying to compile scripts containing enums

Open Lypyl opened this issue 8 years ago • 3 comments

I'm not entirely sure what's causing this, but I ran into a problem trying to compile any scripts containing enum types. It always results in Unity editor crashing.

Lypyl avatar Aug 01 '16 10:08 Lypyl

The MCS compiler can't compile enums, apparently. Seems like it's a problem with .Net itself -- here's a relevant bug file I found some time ago: https://bugzilla.xamarin.com/show_bug.cgi?id=24607

kartoFlane avatar Aug 01 '16 14:08 kartoFlane

That's...surprising! Thanks for the information.

Lypyl avatar Aug 01 '16 19:08 Lypyl

This can be circumvented if you compile MCS for static instead of dynamic compilation.

JakubNei avatar Jul 27 '17 20:07 JakubNei