You need to make sure your project has the appropriate references. This would include Microsoft.Scripting.Dll
and Microsoft.Dynamic.dll
(as well as System.Core.dll
).
Once you do that, you'll need to add the appropriate namespace using
statements, as well:
using namespace IronPython;
using namespace IronPython::Hosting;
using namespace IronPython::Runtime;
using namespace Microsoft::Scripting;
using namespace Microsoft::Scripting::Hosting;