[Python.NET] Do assemblies need to be placed into the GAC

Felix McAllister felix_mcallister at hotmail.com
Wed Oct 29 10:00:56 EST 2003


Thanks for that. We don't currently put our assemblies into the GAC because 
our ASP.NET app can (theoretically) support multiple versions on the one 
server machine. Each version lives in a separate sub-directory that then 
contains a 'bin' directory for the assembly DLLs.

Although you *can* put multiple versions of the same component into the GAC 
(as long as the AssemblyVersion number is different), how would Python.NET 
distinguish these?


>From: "Brian Lloyd" <brian at zope.com>
>To: "Felix McAllister" <felix_mcallister at hotmail.com>,   
><pythondotnet at python.org>
>Subject: RE: [Python.NET] Do assemblies need to be placed into the GAC
>Date: Wed, 29 Oct 2003 09:30:34 -0500
> > I'd like to use PythonNet to script some .NET assemblies we have. Must I
> > place these into the GAC? I've tried to put the python script
> > into the same
> > directory as the assembly DLL but this doesn't work:
>Hi Felix -
>Right now to import an assembly it either needs to be in the GAC
>or in the "application directory" or a subdirectory thereof.
>When running python, the application directory is the directory
>where python.exe lives, not the place where the script you are
>running lives.
>One of the things I want to do for the final is see if there is
>a way to have the assembly loader use the python path (sys.path)
>when looking for assemblies.
>Brian Lloyd        brian at zope.com
>V.P. Engineering   540.361.1716
>Zope Corporation   http://www.zope.com

MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 

More information about the PythonDotNet mailing list