What's the order of executables looking for DLLs? [duplicate]
Possible Duplicate:
开发者_开发知识库 In what order are locations searched to load referenced DLLs?
I have an executable foo.exe which references bar.dll. I have to put bar.dll in the same folder as where foo.exe is or put bar.dll in the GAC. I was wondering if I can put bar.dll in another directory(say bin directory) and ask foo.exe to look for dlls in that directory?
Also, what's the order foo.exe looks for dlls? Current folder first? then GAC?
You'll need to handle AppDomain.AssemblyResolve event if your assemblies are neither in the GAC or the local directory.
yes , you can do even if you can host it in a remote location while in probing phase runtime will try to find it. Searh for assembly Probing
精彩评论