Possible duplicate:In what order are the locations for finding related DLL files found?
I have an executable file foo.exe that references bar.dll. I have to put bar.dll in the same folder where foo.exe, or put bar.dll in the GAC. I was wondering if I can put bar.dll in another directory (for example, the bin directory) and ask foo.exe to look for a DLL in this directory?
Also, what order is foo.exe looking for a DLL? Current folder? is the gac?
You need to handle AppDomain.AssemblyResolve if your assemblies are neither in the GAC nor in the local directory.
, , dll: http://msdn.microsoft.com/en-us/library/ms682586(VS.85).aspx
A similar question (with answers) here:
In what order are the locations for finding related DLL files found?
yes, you can do this even if you can place it in a remote location, and during the testing phase will try to find it. Searh for Assembly Research
Source: https://habr.com/ru/post/1777821/More articles:display all set attributes of an element - javascriptField Position in Firefox Extension - firefoxPerl Archive :: Tar - perlHow can I return the output of a Simulink unit as an input? - matlabOCaml makefile dependency problem - ocamlWhat is wrong with my syntax in this 1-line bit of code (pointers and links and markup oh my)? - c ++Eclipse Error "Resolve Failure" when trying to start an application - javaUse "noticed" on the trail in KRL - krlВложенность HTML внутри rails form_for label tag? - cssHow to highlight text in focus in Windows Phone 7? - windows-phone-7All Articles