I suggest you ...

Provide include semantics for config

I would like to extract alias definitions to a centralized config file and reference this from the master app config. See:
http://stackoverflow.com/questions/7848139/is-it-possible-to-move-the-container-alias-definitions-into-a-separate-file

38 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Volker von Einem shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Anonymous commented  ·   ·  Flag as inappropriate

    I totally agree, who has its config file for an entire app in the web.config of a webapp or app.config of a test project ?

    Writing an extension of UnityContainer which can handle multiple files just requires a few lines of code but it should be provided out of the box.

    something like 'import' with spring :
    <unity xmlns="...">
    <import resource="an_embedded_resource"/>
    <import resource="an_embedded_resource"/>
    <import resource="an_embedded_resource"/>
    </unity>

    <import/> could also be a child element of the <container/> tag.

Feedback and Knowledge Base