How-to add a reference in Iron Python Studio?

Dec 22, 2007 at 4:48 PM
Hello,

I want to control the API Com of Google Earth and make a GUI with Iron Python Studio.

I know how to do this with Python:

"""
import win32com.client
ge = win32com.client.Dispatch("GoogleEarth.ApplicationGE")
"""

Unfortunately this doesn't work if I do:
"""
import sys
sys.path.append("C:\\Python24\\Lib")"""
"""
(I guess it's because or Iron Python limitations with CPython extensions)

So I tried the .Net way (I'm new to .Net)

If I do a right click on my "References" in a Visual express C# project I can select "Add reference" and find the Google Earth API Com.

If I do the same in Iron Python Studio (right click on References) no menu appears.

How can I add a reference in Iron Python Studio (even manually)?

Thanks for any hint.
Dec 26, 2007 at 11:23 AM
see here: http://www.codeplex.com/IronPythonStudio/Thread/View.aspx?ThreadId=19056

-- Marcel
Dec 26, 2007 at 2:13 PM
Thanks for the link :)
I've tried to do like Chris describes but I have the following problem below.

(Warning: I've got a minimal knowledge of .Net for now)

First I've learnt a bit about GAC here:
http://en.wikipedia.org/wiki/GlobalAssemblyCache

But when I go in C:\Windows\assembly there's plenty of things but nothing which looks like "google earth" or something approaching.

So I guess I have to add it to the GAC first?

For that I've located the EARTHLib.dll file.
I opened a DOS shell with root rights.
Typed: gacutil /i EARTHLib.dll
and gacutil answers:
"""
Failure adding assembly to cache: Attempt to install an assembly without a strong name
"""

So searching a little it looks like I've got also to create a strong name, wrap it and link it ...(I'm not sure how much time it will take me to understand that)

is there a way I can add a dll to a project without going through the GAC? (I guess Visual C# express found it somewhere else than the GAC?)