Okay, well the System.Core reference issue has to do with trying to use the "-pkg" compiler option on Windows. The Cobra compiler tries to execute the "pkg-config" command which typically doesn't exist on Windows (expect maybe with a CygWin installation) so it dies with the message: "the system cannot find the file specified"; which is referring to the pkg-config command itself as opposed to any referenced assemblies.
This can be reproduced from the command line with any Cobra source file by executing
- Code: Select all
cobra -pkg:foo <source_filename>
I think the MonoDevelop addin has enough information to try and detect a package reference on Windows/.NET and provide a better error message, or possibly find the actual assemblies contained in the package and instead pass in one or more "-ref" options to the compiler which means everything would work. I'll open a bug report on GitHub. Thanks, DelphiGuy.
Charles, not sure if you want the compiler to provide a more descriptive error message or check to see .isRunningOnMono before trying to execute pkg-config. If so, I can open a ticket. I would guess the place to change is somehwhere around here:
http://cobra-language.com/trac/cobra/br ... cobra#L714