[IronPython] Adding a namespace to a python dll
Anthony Tarlano
mailinglist.account at gmail.com
Tue Apr 11 17:52:46 CEST 2006
Hi,
The question is whether anyone can tell me how to add a namespace to a
PE file that was created from a python file using the PythonCompiler?
I used the PythonCompiler from IronPython.Hosting to create a DLL
assembly, but after adding a reference to the file and attempting to
use the using namespace directive from C# to access the classes of the
DLL all I get is an error
Hosting.cs(3,7): error CS0138: A using namespace directive can only be applied
to namespaces; 'service' is a type not a namespace
I used the .NET reflector to inspect the PE and sure enough there
doesn't seem to be a namespace or more specifically it seems to be a
zero length string.
tia,
Anthony
More information about the Ironpython-users
mailing list