Is it possible that a winform application loads its DLL from a path other than the root?

I include the library in my application and copy 7 dlls with the same path as exe.

But I want to put these dlls in a subfolder.

When I put the dll in a subfolder, the application does not see the DLL.

So, is there any configuration that describes where the application should look for its dlls?

It is also possible to change the location of the DLLs referenced for which the local copy attribute is set to yes?

Edit: The
following question is also relevant.
How to install PrivateBinPath in MEF?

+3
source share
2 answers

The runtime will be checked for assemblies in the following order:

  • (GAC)

app.config :

http://msdn.microsoft.com/en-us/library/823z9h8w%28VS.80%29.aspx

, , :

http://msdn.microsoft.com/en-us/library/yx7xezcf%28vs.71%29.aspx

+5

"", , AppDomain. - . AppDomainSetup.PrivateBinPath .

: 806383

+1

Source: https://habr.com/ru/post/1759972/


All Articles