Follow the instruction in http://msdn.microsoft.com/en-us/library/ff921141%28v=pandp.40%29.aspx, I create a WPF application.
Every thing was OK as the article said.
The article said: "This hands-on lab uses the Unity container, but you can also use the Managed Extensibility Framework (MEF) with the Prism Library."
Now I want to use MEF instead of Unity. So I
"There is currently no moduleTypeLoader in the ModuleManager that can retrieve the specified module."
How to fix it ?
Every thing was OK as the article said.
The article said: "This hands-on lab uses the Unity container, but you can also use the Managed Extensibility Framework (MEF) with the Prism Library."
Now I want to use MEF instead of Unity. So I
-
added
reference to Microsoft.Practices.Prism.MefExtensions -
added
using Microsoft.Practices.Prism.MefExtensions; -
modify
class Bootstrapper:UnityBootstrapper
to
class Bootstrapper:MefBootstrapper
"There is currently no moduleTypeLoader in the ModuleManager that can retrieve the specified module."
How to fix it ?