Closed chrisabbott closed 6 years ago
Yeah, it's a versioning issue, it doesn't understand local functions that were added in C# 7. To solve it, either change local functions to Func<> and Action<> (see the syntax in the first commit) or use a compiler that supports C# 7. I think Mono should, just need to enable it somehow, latest NET Core definitely does.
FWIW, I managed to compile and run successfully on macOS with:
$ brew install mono mono-libgdiplus
$ csc *.cs -r:System.Drawing.dll
$ mono Main.exe
Hey, I'm running into some issues compiling this using mcs on MacOS High Sierra. Specifically, here's my terminal output after running
mcs -pkg:dotnet /reference:System.Drawing.dll *.cs
and installing mono using brew. I'm not at all familiar with C# or .NET, so any guidance with this would be appreciated ... it definitely looks like a versioning issue.Here's my mono version:
And here's my output: