Prism v4 modules loading in MEF only project

Topics: Prism v4 - Silverlight 4
Feb 19, 2011 at 2:53 AM

Hi, I have a project using Prism v4 on Silverlight 4, everything goes right there with the shell and modules but my boss wants to load my independant modules (using the xap files) into another project using pure MEF, so I was wondering if someone could guide me through it, I have set the module with an Export attribute as required by this new MEF app, but the MEF app cannot import my module with an error of

1) No valid exports were found that match the constraint '((exportDefinition.ContractName == "MapModule") AndAlso (exportDefinition.Metadata.ContainsKey("ExportTypeIdentity") AndAlso "SwitchUI_Contracts.ISustainability".Equals(exportDefinition.Metadata.get_Item("ExportTypeIdentity"))))', invalid exports may have been rejected.



Feb 21, 2011 at 2:45 PM


You might find the following thread handy where a similar problem you are experiencing is covered.

Since in this new project is not using Prism, you could find better support using MEF only application on MEF Discussions site.

I hope you find this information useful.


Miguel Bronzovic