1
Vote

MEF Extension Bug – unexpected module initialization

description

ModularityWithMef.Desktop Sample Application

Image

The MefModuleManager.OnImportsSatisfied() is executing LoadModulesThatAreReadyForLoad() on line 93. Since the ModularityWithMef.Desktop application imports IModuleManager the modules are being loaded prior to the Shell constructor firing.

If you remark out this line you get the following (expected) results:
Image

Blogged in more detailed HERE

comments