[IronPython] Ironpython reload assembly/dll from console

Dino Viehland dinov at microsoft.com
Wed Apr 28 18:19:14 CEST 2010

Unfortunately the CLR doesn't have any support for reloading.  But you should be able to do clr.AddReferenceToFile instead of just clr.AddReference.  IronPython will then update the types which are available for import so they're the new types.   There may be some issues around CLR loader contexts but if things are simple enough (e.g. one assembly, not a collection of assemblies which reference each other) then that should work pretty painlessly.

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of jon vs. python
Sent: Wednesday, April 28, 2010 2:57 AM
To: Discussion of IronPython
Subject: [IronPython] Ironpython reload assembly/dll from console

Hi, I'm developping a C# assembly and using IronPython to test it interactivelly. Every bug or flaw found requires a new assembly generation, loading, etc.
Is it possible to reload the assembly from IronPython Console? If it is, how can I do it?
Thanks, Jon.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100428/5f85e2e7/attachment.html>

More information about the Ironpython-users mailing list