I am doing an example that can be found here . So I am trying to run IronPython in a C # script:
Python:
def hello(name): print "Hello " + name + "! Welcome to IronPython!" return def add(x, y): print "%i + %i = %i" % (x, y, (x + y)) return def multiply(x, y): print "%i * %i = %i" % (x, y, (x * y)) return
FROM#:
using IronPython.Hosting; using IronPython.Runtime; using Microsoft.Scripting.Hosting; using System; namespace IntroIronPython { class IronPythonMain { static void Main(string[] args) {
And from here I have this error: "Dynamic operation cannot be compiled without reference to the assembly" Microsoft.CSharp.dll "." And I seriously don’t understand what it is about, what did I forget to add?
In my recommendations, I have: 
Thanks for your help.
Ps: I'm on MonoDevelop.
c # .net-assembly dynamic ironpython
ssx Jul 10 '12 at 15:45 2012-07-10 15:45
source share