[Mono-dev] Equivalent of csc /link for mcs (COM interop)?

Peter Dillinger pcd768 at gmail.com
Tue Nov 13 18:20:18 UTC 2012

On Tue, Nov 13, 2012 at 9:42 AM, Jonathan Chambers <joncham at gmail.com> wrote:
> You'll probably want to try dmcs (rather than mcs) in order to get C# 4.0 dynamic binding.

I believe your comment only applies to 2.10.x and earlier.  (I moved
to 2.11.x after being annoyed by the distinction.)  From

| Starting with Mono version 2.11 a new unified compiler mcs is
available. It replaces
| all previous runtime specific compilers (gmcs, dmcs, smcs). They
still exist (as
| scripts only) to ease the migration path to mcs but we recommend to use mcs.

And indeed, if I compile and reference this instead of
Microsoft.Office.Interop.Excel.dll, mcs will compile my original

namespace Microsoft.Office.Interop.Excel {
    public class Application
        public dynamic Columns { get; set; }

    public class Range
        public dynamic Value { get; set; }


More information about the Mono-devel-list mailing list