Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

probing privatePath and subdirectories

In my application I would like to put DLL files in a subdirectory. I'm using the probing element in app.config and it works quite fine, but I've got an issue with localization assemblies.

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <probing privatePath="libs"/>
</assemblyBinding>

If I have two DLLs in:

libs/de/myAssembly.dll

and

libs/myAssembly.dll

The first one is loaded, while I want that the file in the root folder is preferred. How can I achieve this?

like image 243
ufo Avatar asked Feb 21 '14 10:02

ufo


1 Answers

You can set multiple paths to probe.

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <probing privatePath="libs;libs/de;libs/fr"/>
</assemblyBinding>

Please see official microsoft documentation on probing element

like image 127
pepo Avatar answered Oct 13 '22 01:10

pepo