assemblies - C#: Custom assembly directory -


Say we have an application that has an executable and 5 libraries. Regularly all of these will be contained in a directory and the libraries will be loaded from there.

Is it possible to do this, for example I have some libraries in a directory called Libre, and the rest are called Libby 2? So that the application will be only executable in the directory and other assemblies will be included in various logical directories.

How can I do this? And I would like to know how to load the assemblies, but how to apply the application's building in the correct directory.

You can add additional search paths to your app .config that appears to load the assemblies . For example

  & lt; Runtime & gt; & Lt; Assembly binding xmlns = "karash: schema-microsoft-com: asm.v1" & gt; & Lt; Probe of private practice = "Lib; third party" /> & Lt; / AssemblyBinding & gt; & Lt; / Order & gt;  

You can see more details.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -