views:

27

answers:

1

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);
A: 

Never mind, it seemed that including the Microsoft.Scripting.Core assembly was the cause of this.

rfw
You should mark this as answered so that people know the question inst outstanding.
Sayed Ibrahim Hashimi
I couldn't before - had to wait two days.
rfw