Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Whichever way you go, I think it could be valuable to have the notion of a single "source of truth" for your configuration.</p> <p>Duplication is fine, if you need to provide configuration to some components in their own specialized form.</p> <p>But to retain your sanity I think you should try and aim to have one place where you set all the configuration pertaining to your application, and then a well-defined mechanism for translating that into entries inside Web.config, and any other config mechanism you have to support.</p> <p>Depending on the level of skill of your support partners (whether or not they will break XML), I imagine you may also want to provide a GUI utility to let them twirl all the knobs in this "source of truth" configuration file, with "Apply" going and running transform/update code to make the necessary changes to Web.config &amp; friends.</p> <p>Then to manage your configuration for different sites/customers, you theoretically have around one configuration file to manage.</p> <p><strong>Note:</strong> In ASP.NET 4.0 a build-time configuration transform mechanism will be available (see <a href="http://blog.hmobius.com/post/2010/02/17/ASPNET-40-Part-4-Config-Transformation-Files.aspx" rel="nofollow noreferrer">http://blog.hmobius.com/post/2010/02/17/ASPNET-40-Part-4-Config-Transformation-Files.aspx</a>), which may make this task easier. It appears you can use this with some hacks for non web projects (see <a href="http://philbolduc.blogspot.com/2010/03/using-config-transforms-outside-web.html" rel="nofollow noreferrer">http://philbolduc.blogspot.com/2010/03/using-config-transforms-outside-web.html</a>). </p> <p>However, if you need to make these changes at deployment time, you may be stuck with writing custom tools to do this, though it looks like the XDT transforms may be the way to go for you, given you want to be able to add/update/remove items.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload