I'm working for Ironpython. I want to execute python code which is need an area for storing the csv (from running python) and my code is as follows:
using System;
using IronPython.Hosting;
using Microsoft.Scripting.Hosting;
using Microsoft.Build.BuildEngine;
using System.Collections.Generic;
using System.Text;
public class dynamic_demo
{
static void Main()
{
var engine = Python.CreateEngine();
dynamic scope = engine.CreateScope();
engine.ExecuteFile(@"C:\PathToFile\script.py", scope);
scope.SomeFunction();
}
}
This is an error for Visual Studio 2013
'Microsoft.Scripting.Hosting.ScriptScope' does not contain a definition for 'SomeFunction'
And my references are (For both 2013 and 2015 version)
I'm actually using both Visual Studio 2013 and Visual Studio 2015 for checking the results (don't really have to do this) Thanks for your help. Is there any details you need please tell me.