mefedmvvm

How can MEF resolve dependencies of assemblies that don't live at the root of the application?

丶灬走出姿态 提交于 2020-01-04 05:25:37
问题 I have written my application to be a class library that is launched by a win32 MFC application. Each of my views is a separate assembly that is located with the base class library that is located in a sub-directory of the hosted MFC application. My question is, how can I get MEF to resolve the dependencies of my exported classes using the assemblies from this sub-directory instead of the root directory? This is what I want: ParentFolder myapp.exe SubFolder myMvvmWindow.dll myMvvmSubWindow