AppDomainSetup has "PrivateBinPath" property. How do I apply something like
this for the current AppDomain, so that I can load the dependencies of an
assembly I am loading which are in the same directory as the assembly that
I'm loading?
Jon
>AppDomainSetup has "PrivateBinPath" property. How do I apply something like
>this for the current AppDomain, so that I can load the dependencies of an
>assembly I am loading which are in the same directory as the assembly that
>I'm loading?
There's a static method called "CurrentDomain", which returns the
current app domain, and there's a second method called
"AppendPrivatePath" which should do exactly what you are looking for:
AppDomain.CurrentDomain.AppendPrivatePath(<your path>);
Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch