[Python.NET] getting started - can't import a simple dll

Dave Hirschfeld dave.hirschfeld at gmail.com
Wed Dec 15 11:09:32 CET 2010


Laszlo Sebo <laszlo.sebo at ...> writes:

> 
>  
> I believe currently clr 2.x is supported, 
> which means that up to .net 3.5 it should work fine, as those releases 
> still use the 2.0 runtime (someone correct me if i'm wrong). LINQ was added  
> with 3.5, so it should work.
>  
> cheers,
> laszlo
>  
> I 
>   recompiled using .NET 2.0 and now I can load the DLL.  Is there any 
>   support for frameworks after 2.0?  I'd hate to lose the ability to use 
>   LINQ.Also, you mentioned Python.Runtime.dll.config.  I don't have 
>   this file.  What's in it?
> 

I managed to compile Python.NET for .NET 4 with only a couple of minor
modifications to the code:

http://thread.gmane.org/gmane.comp.python.dotnet/969

NB: I put both clr.pyd and Python.Runtime.dll in my python root dir (C:\Python26)

HTH,
Dave



More information about the PythonDotNet mailing list