How do I give my .net app secondary locations to look for dependent assemblies? -
I'm sure it was asked somewhere in another question, but it's easy to find the wording used easily Not enough for
How do I tell my windows forms about secondary locations, which can be found by assemblies that can be needed when it is run? I am not talking about using the reflection to find plugins, but the dependencies that have been compiled in the assembly but with the calling assembly may be located in the sub-directory instead of the side-by-side.
You can do this application via config file: assemblyBinding element , More accurate - check :
& lt; Configuration & gt; & Lt; Order & gt; & Lt; Assembly binding xmlns = "karash: schema-microsoft-com: asm.v1" & gt; & Lt; Private investigation = "bin; bin2 \ subbin; bin3" /> & Lt; / AssemblyBinding & gt; & Lt; / Order & gt; & Lt; / Configuration & gt; It will force runtime to see the assemblies in bin , bin2 , bin2 \ subbin Code> bin3 directories, all of which are sub-directories of the base directory of the application.
Comments
Post a Comment