CaliburnMicro + MEF + Unity with MefContrib

Topics: Bootstrappers & IoC
Oct 26, 2012 at 4:48 PM

I have gotten my proof of concept up and running quite well using Caliburn.Micro along with MEF.  My next step is to see how to integrate Unity into that picture.  I have a separate POC figuring out the MefContrib part, but I am running into a roadblock when I try to move that into my Caliburn POC.

I have a Mef class that imports a type (Foo) that is registered in the Unity container (IFoo).  I am registering the mef catalog in the Bootstrapper.Configure() method.  BTW , my POC pulls heavily from the Hello Screens stuff.

Mef cannot build my mef class because it is missing the required contract.

Hoping someone has some pointers here.  I would be happy to provide more details if needed.