2002-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 5 Dec 2002 04:01:10 +0000 (04:01 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 5 Dec 2002 04:01:10 +0000 (04:01 -0000)
commit2bf3fa058e82303b677034a60b53b269ea3c063f
treede002e2a262357e1f4d3550706dfebee4e84cccd
parent8da262249e1136e41e1a193c14b15a4119da9e80
2002-12-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* appdomain.[ch]: handle the assembly preload event to try loading the
assemblies using the paths we have in the current domain.

* assembly.[ch]: created an assembly preload hook that is called to try
loading the assembly by other means that the ones provided here.

* domain.c: initialize the domain search path.

From now on, assemblies (TODO: except corlib and System) are loaded
according to these rules when using mono_assembly_load ():

1. It tries to load the assembly from the ApplicationBase
of the current domain appending .dll and .exe (TODO: have to
try loading from name/name.dll and name/name.exe).

2. It tries the search path specified in PrivateBinPath for the
current domain (if any).

3. Previous behavior.

svn path=/trunk/mono/; revision=9391
mono/metadata/ChangeLog
mono/metadata/appdomain.c
mono/metadata/appdomain.h
mono/metadata/assembly.c
mono/metadata/assembly.h
mono/metadata/domain.c