The C# dynamic
type seems not to compile when UseHostCompilerIfAvailable
is set to false
. I have both the required references Microsoft.CSharp
and System.Core
in my project, but it refuses to recognize it. Using the integrated Visual Studio compiler works, however.
The offending line is:
dynamic obj = this.Engine.Operations.CreateInstance(pytype);