I'm trying to compile a piece of C# code that contains the dynamic
keyword.
(I need this keyword for using ironpython.)
However, it doesn't compile, complaining that
error CS1980: Dynamic keyword requires
`System.Runtime.CompilerServices.DynamicAttribute' to be defined.
Are you missing System.Core.dll assembly reference?
The compiler I'm using is Mono JIT compiler version 2.10.8.1
.
I don't have System.Runtime.CompilerServices.DynamicAttribute
in the list of possible references.
How can I make mono accept the dynamic
keyword?
This comment of Hans Passant solved the problem: