0
votes

I am trying to load views and viewmodels in a module using app.config and Prism 7.1.0.279-pre. I cannot find any post anywhere that seems to get this to work. Does anyone have any examples?

I have a basic understanding from MEF when it was early on. I would like to be able to create apps with multiple reusable modules and would like to get this to work.

1

1 Answers

0
votes

You should use the ConfigurationModuleCatalog.

Therefore, you need a ModulesConfigurationSection in your app.config named modules. This is where you define the modules to load.

An example is in the documentation.

BTW - Prism 7 has dropped support for MEF. Use a container like unity or dryioc for dependency injection and reserve MEF for plugin system.