General MEF question?

Sep 23, 2011 at 7:06 PM

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

    Sub-Folder

          myMvvmWindow.dll

          myMvvmSubWindow.dll

          Microsoft.Expression.Interactions.dll

  MEFedMVVM.WPF.Dll

 

This is what I have to have now:

ParentFolder

   myapp.exe

   Microsoft.Expression.Interactions.dll

   MEFedMVVM.WPF.Dll

   Sub-Folder

          myMvvmWindow.dll

          myMvvmSubWindow.dll