We have the beginnings of a modular wpf application built using prism.
We want to allow for each module to have specific configuration – app settings / connection strings etc.
We’ve currently got things working by specifying all configuration in the shell project as a short term fix. Clearly this breaks the modular approach we are looking for – can anyone point me in the right direction?
Thanks.
You can try to rename
app.configfor every specific module to something likeYourModule.Name.configand load that file in your module with code like:Maybe you should play some with filename (like adding .config in the end), I can’t check it right now.