2
Vote

Dependency Injection Exercise 1 ModulesCatalog.xaml contains wrong namespace

description

The ModulesCatalog.xaml file still has a reference to the old Prism 2.1 namespace for Modularity
 
xmlns:Modularity="clr-namespace:Microsoft.Practices.Composite.Modularity;assembly=Microsoft.Practices.Composite"
 
should be
 
xmlns:Modularity="clr-namespace:Microsoft.Practices.Prism.Modularity;assembly=Microsoft.Practices.Prism"
 
Also, no reference is made to add your new module to the file so it will be loaded hence if your breakpoint is never hit if the module is never loaded.
 
<Modularity:ModuleInfo Ref="Workshop.UIMessagesModule.xap" ModuleName="UIMessageModule" ModuleType="Workshop.UIMessagesModule.UIMessageModule, Workshop.UIMessagesModule, Version=1.0.0.0" />

comments

NancyFolsom wrote Jan 13, 2011 at 11:13 PM

The ModulesCatalog.xaml in the End project is correct.

wrote Feb 14, 2013 at 2:09 AM