I have a Prism modular application, where modules are built in a directory catalogue. If my module references an assembly, .Net assembly binder fails to locate that assembly at run time, because it is probing inside host applications bin folder, ignoring the modules bin folder altogether. The only way to make it work is to reference the assembly in host app as well. This is unacceptable IMO, because the whole point of a modular application is that the host app is decoupled from modules, hence it shouldn't be aware of what dlls they reference.
Is there a way to configure assembly loader/binder to look in the module's output folder for the referenced assemblies?
I found this question, which doesn't give any solutions other than adding references in the host app.
Prism assembly reference failure: System.Windows.Interactivity