Multiple Configfiles

Jun 22, 2010 at 1:19 PM
Hy is there a possibility to have multiple xml config files? The container will then merge the configurations if there are some equal configurations and at the end i've got a container with all configurations of all config files? greeze HellReiser
Jun 22, 2010 at 5:35 PM

Yes, you can have multiple XML config files. The container uses a "last one in wins" policy. So if different types are configured in each file, after you load them all those configurations will be there. If the same type is configured in multiple files, the last one loaded will be the one that takes effect.


Jun 23, 2010 at 8:25 AM

Thanks for your response

How could I import the different files in the xml file. Is there an <import path="../coreContext.config" /> or equal xml node? Or have I to
call the Configurate Method on the container for each xml file?

Jun 23, 2010 at 6:04 PM

You have to explicitly load the configuration via the API for each config file.


Jun 28, 2010 at 6:35 PM
Edited Jul 7, 2010 at 12:21 PM



Jul 3, 2010 at 1:48 AM

I posted the project at

Read the comments in MasterTest.cs and the code UnityInstance.cs.