Someone who's read the spec will be able to give you a more detailed answer
than this, but my rule of thumb is that the .NET Framework looks first in
the GAC and then, if it can't find the assembly there, it looks in the same
directory as the calling executable. If you are using VS, the dlls will be
put in the right places for you.
So, in your example, if none of the assemblies is in the GAC, the Framework
will look for both dlls in the directory holding A.exe. The paths you
specify in the IDE are irrelevant AFAIK.
Cheers
Peter
"sealo" <se*****@gmail.comwrote in message
news:11*********************@a26g2000pre.googlegro ups.com...
Hello,
How does the C# App search the library in the runtime?
Say, I build a C# App A, which use B.dll, and B.dll use the C.dll.
I specify the B.dll and C.dll path in the IDE, and build was passed.
If I run the app, do I need to put the B.dll and C.dll in the same
directory with the App?
How does the app search the library which he need?
Or, is there some environment variable of Library Path in .NET, like
"LD_LIBRARY_PATH" in UNIX?