loading DLL's from single location

E

ECathell

I have several programs in development that all use the same DLLS. Many of which will be the new enterprise library objects. While in development and initial launch I do not want to add these to the GAC of each machine. I want to make a single directory on each computer to hold the dlls and use a <probing> type element in the config file to find them. It appears that <probing> is only for a subfolder off the root of the current application. How can I do something similar without having to <codebase> each assembly?

my hierachy would look something like this...

root folder
application folder
application folder
DLL folder
 
P

Phill. W

ECathell said:
While in development and initial launch I do not want to add these to
the GAC of each machine. I want to make a single directory on each
computer to hold the dlls .. . .
How can I do something similar without having to <codebase> each
assembly?

I don't believe you can. You /would/ have to codebase each assembly
separately, except in the case where one assembly, loaded from your
application, then loads another that can reside in the /same/ directory,
as in

ApplicationA, in directory dirA
loads AssemblyB, in directory B (using codebase), which then
loads AssemblyC, /also/ in directory B.

That said, you'll get performance gains putting assemblies into the
GAC; it just makes it /easier/ for the Framework to /find/ things.

Regards,
Phill W.
 
E

ECathell

thanks for the answer Phil.

I am intending on putting it in the GAC once I am done with the major coding
parts...I was just looking for a temp quick fix, of course those are few and
far between. hehe.
 

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