Problems embedding IronPython in C# (Missing Compiler required member 'Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember' Problems embedding IronPython in C# (Missing Compiler required member 'Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember' python python

Problems embedding IronPython in C# (Missing Compiler required member 'Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember'


You need to add a reference to Microsoft.CSharp.dll. This provides the required types for using dynamic in C#.

Also, you will likely need to upgrade to IronPython 2.7[.3] or later, as there are some incompatibilities with old releases and the newer .NET frameworks.


You will also get this error if you've included references to the wrong target assemblies. For instance, if you're building against the .Net 4.0 Full profile, you must include the IronPython assemblies from:

<install directory>\IronPython 2.7\Platforms\Net40

Including assemblies from the Net35 directory will also result in the missing RuntimeBinder error.


Very old question for a still existing issue I've faced this morning using IronPython 2.7.10 in a new project.

The accepted answer can now be improved : instead of manually adding Microsoft.CSharp.dll, I would recommend adding the package "Microsoft.CSharp" from nuget. Portability will be improved (netstandard, net framework, netcore...).