[IronPython] How does the clr.AddReferences work?

Paparipote . paparipote at hotmail.com
Fri Mar 10 03:12:53 CET 2006

I have a doubt:

In IP Beta 2, I was able to write:
>>>import clr
>>>import test

but in Beta 4, if I write clr.AddReferenceToFile("test.dll")  I get:

Traceback (most recent call last):
  File , line 0, in input##678
  File , line 0, in AddReference##657
RuntimeError: Could not add reference to assembly test.dll

If I do with:
It works well.

If, in Beta 4,  I write:
>>>import System
>>>import clr
>>>aso = System.Reflection.Assembly.LoadFrom('test.dll')
It works well.

Question is: Does it mean I should resign to the use of 
clr.AddReferenceToFile("test.dll") ???

Or what is bad with my understanding about clr ?

Best regards

Charla con tus amigos en línea mediante MSN Messenger: 

More information about the Ironpython-users mailing list