How to make an assembly search for its dependent DLLs in a specific path (other than the installed d

  • Thread starter Thread starter sudhakar
  • Start date Start date
S

sudhakar

Hi
I've two products which share lot of common DLLs. I want to create a common
directory and store these common DLLS.

Now how can i make my executables (or other assemblies) search for the
dependecnt DLLs in this common directory ?

Thanks

-sudhakar
 
Use the privatepath element in the application configuration file.

<probing privatePath="c:\mylibs; bin\debug" />

Regards
Senthil
 
Use the privatepath *attribute* of the "probing" element in app.config

<probing privatePath="c:\mylibs; bin\debug" />

Regards
Senthil
 
The <probing> element only works for subdirectories of the application
folder. The <codeBase> element lets you specifiy any location as long as the
referenced assemblies are strongly named.

Regards, Jakob.
 
Thanks kakob and sadhu

I'm trying to install the common assemblies under the "program files/common
files/company name" directory.

Is there any way I can give the "common files" path in the codeBase ? Please
note that the "common files" path may be different in the product
installation machines. (Is there any environment variable for "common files"
directory ?) that I can include in the codebase

-sudhakar
 
Back
Top