13 votes

ContextConfig

This library allows you to set configuration values dependent upon which web server environment the code is currently running. Environments are defined using the hostname (url) from which the page is operating using a basic XML config file.

Multiple hostnames can be set for each environment. You can also add an optional "catch-all" wildcard domain indicating which environment should be assumed if the current domain doesn't match any that have been predefined.

NEW in v1.1:

“Override Configuration Manager” Mode: When enabled, any calls to ConfigurationManager.AppSettings["key"] will utilize ContextConfig data, when available, and fallback to use web.config settings if no matching key is found in the ContextConfig.config. To disable - Just set  OverrideConfigurationManager="false" in the config.

Screenshots

Project owner

Heather Floyd

Heather Floyd

Heather has 484 karma points

Project Compatibility

This project is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (100%)
7.1.x (100%)
7.0.x (100%)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Project Information

  • Project owner: Heather Floyd
  • Created: 03/07/2014
  • Current version 1.1
  • License GNU GPL v3.0
  • Downloads: 1569

External resources