开发者

What's the order of executables looking for DLLs? [duplicate]

This question already has answers here: Closed 12 years ago.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜