mcs-ICodeCompiler
mcs-ICodeCompiler copied to clipboard
Issue when trying to compile scripts containing enums
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.
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
That's...surprising! Thanks for the information.
This can be circumvented if you compile MCS for static instead of dynamic compilation.