[m-users.] CSHARP grade for .Net Framework 2.0

Julien Fischer jfischer at opturion.com
Thu May 23 18:40:13 AEST 2013

On Wed, 22 May 2013, Sergey Krasnov wrote:

> Thanks for the quick reply.  Using Mono in Cygwin.

What executable name does configure choose for the C# compiler?
With Mono, the available names and corresponding versions of the .NET
framework they build against are:

     mcs - defaults to .NET version 2.0
     dmcs - defaults to .NET version 4.0
     gmcs -defaults to .NET version 2.0

The problem that I suspect you have is that Mercury's configure script
chooses mcs in preference to dmcs.  Unfortunately, there doesn't
currently seem to be a way of setting the C# compiler at configure time.
(There *should* be a way, but it doesn't appear to have been

Short term workaround is that you will need to edit m4/mercury.m4
lines 263 and 278 and switch the order of the C# compilers listed
there about so that dmcs is the first of the Mono compilers listed.
If you do, that configure should report that the .NET library version
is 4.0.0.

(Paul: you posted a whole lot of patches that fix this at:
These don't appear to have been committed?  Why not?)


More information about the users mailing list