Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are binding redirects inside assembly.dll.config ever evaluated at runtime?

Tags:

.net

clr

According to the docs assembly binding redirects can also be inside assembly.dll.config not just in assembly.exe.config. But the docs are not really clear whether binding redirects inside assembly.exe.config can also be used at runtime.

If I deploy a assembly.dll.config together with the assembly.dll in the the app, will, the binding redirects in there ever have any effect?

like image 820
bitbonk Avatar asked Nov 07 '22 13:11

bitbonk


1 Answers

Binding redirects are not used from assembly.dll.config.

If BindingRedirect.exe calls LibBindingRedirect.dll :

  • BindingRedirect.exe.config (work)
  • LibBindingRedirect.dll.config (don't work)
like image 53
Naster Avatar answered Dec 30 '22 01:12

Naster