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?