This project has moved and is read-only. For the latest updates, please go here.

Satisfying imports in application and library

May 1, 2010 at 8:30 PM

Hi, I've playing around with MEF again the last couple of days. After I came across this following article:  regarding the deployment catalog and dynamic dowloading XAP downloading.

I tried it for the application I'm working on and it worked fine. I deceided to take it a step further by moving most of the application logic to a library (and a lot of references). So the application will become a bootstrapper with little functionality.

The code CompositionInitializer.SatisfyImports(this); executes fine. The application contains a region that get's filled with a control from the library. I'm using MEF for binding the viemodel to the view but it's not working in the library. After I call SatisfyImports I get the error "No valid exports were found that match the constraint".

Hope I'm missing something :-) And someone can point me in the right direction.

Thanks, Ron