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

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
 
S

sadhu

Use the privatepath element in the application configuration file.

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

Regards
Senthil
 
S

sadhu

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

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

Regards
Senthil
 
G

Guest

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.
 
S

sudhakar

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top