[Mono-dev] Assembly lookup directory (probing) problem
Maciej Paszta
paszczi at go2.pl
Wed Jun 4 04:04:31 EDT 2008
Hello,
I observed very strange behavior. In my app folder I have a subfolder
of modules/ which contains several assemblies. I put the following
lines into App.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="modules"/>
</assemblyBinding>
</runtime>
</configuration>
Not when I try to load a type from one of the assemblies stored in the
folder:
Type.GetType("Namespace.Class, Assembly) - it works fine, the type is
correctly fetched.
However when I reference the assembly from inside of the project
without copying it into main app folder (leaving it in modules/ dir
instead) I get error that the assembly could not be found. It seems
that mono doesn't care in this case about
the contest of the App.config. On .NET it works as expteced, is it a
bug or a proper behavior?
Best regards,
Maciej Paszta
More information about the Mono-devel-list
mailing list