Re: [IronPython] Loading IronPython.dll from memory

2008-12-17 Thread Jeff Slutter
I snipped a little extra - my code is really: Dictionary runtimeOptions = new Dictionary(); runtimeOptions["Debug"] = true; m_runtime = IronPython.Hosting.Python.CreateRuntime(runtimeOptions); m_runtime.LoadAssembly(typeof(String).Assembly); // Add reference to System m_runtime.LoadAssembly(typeof

Re: [IronPython] Loading IronPython.dll from memory

2008-12-17 Thread Michael Foord
Jeff Slutter wrote: [I can work around this, but I'm curious if there is a solution] Due to some crazy requirements, I'm trying to load my assemblies from memory. I have setup an Assembly Resolver with: AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(ResolveInternalAssembly);

[IronPython] Loading IronPython.dll from memory

2008-12-17 Thread Jeff Slutter
[I can work around this, but I'm curious if there is a solution] Due to some crazy requirements, I'm trying to load my assemblies from memory. I have setup an Assembly Resolver with: AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(ResolveInternalAssembly); And it gets called.