Thank you for your help!  I did the following which seems to work quite fine:

            Assembly assem = 
Assembly.GetAssembly(Type.GetType("System.Text.StringBuilder"));
            engine.Runtime.LoadAssembly(assem);

Of course if it's a change as of 2.0 I wonder why it doesn't manifest itself 
when executing from the command shell. Unless (and I take your meaning as such) 
it's the DLR Hosting libraries as of 2.0 - 

Only midnight, glad you bailed me out Curt otherwise I may have been a sleepy 
fellow tomorrow at work. :^)

David

----- Original Message ----
From: Curt Hagenlocher <[EMAIL PROTECTED]>
To: Discussion of IronPython <users@lists.ironpython.com>
Sent: Thursday, April 17, 2008 11:33:29 PM
Subject: Re: [IronPython] DLR Hosting, Access to .NET Types

On Thu, Apr 17, 2008 at 9:28 PM, David Seruyange <[EMAIL PROTECTED]> wrote:
>
> But when using a hosted engine, mscorlib seems not to be loaded for free
> anymore -

That is correct, and represents a change that was made around 2.0
Alpha 8 (if I remember correctly).  That's why you need to explicitly
add assembly references to the runtime.

--
Curt Hagenlocher
[EMAIL PROTECTED]
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com






      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to