ModuleType - Possible to ignore version?

Topics: Prism v2 - Silverlight 3
Mar 17, 2010 at 1:17 AM
Edited Mar 17, 2010 at 1:20 AM

As part of our build process, the module's AssemblyInfo - AssemblyVersion value changes. Whenever this happens I am forced to manually update my xaml catalog.

Here is a snippet from my Module Catalog xaml file:

<m:ModuleInfo Ref="somenamespace.Tree.xap"
                      ModuleName="somenamespace.Tree"
                      ModuleType="somenamespace.TreeModule, somenamespace.Tree, Version=2.1.3727.00"
                      InitializationMode="WhenAvailable" >

</m:ModuleInfo>

Is it possible to somehow ignore the module version? Or use some kind of wild-card to specify that incremental versions can be resolved...something like Version=2.1.*.*

My other option would be to add a build task that updates the xaml catalog whenever the module is built.

Any suggestions are welcome :)

Developer
Mar 18, 2010 at 7:01 PM

Hi,

There is no way to ignore module version, as the ModuleInitializer requires an Assembly Qualified Name, which must contain a version number.

You could follow the build task approach.

I hope you find this helpful.

Guido Leandro Maliandi
http://blogs.southworks.net/gmaliandi