This C# library allows you to set configuration values dependent upon which web server environment the code is currently running using a basic XML config file.
Environments are defined using the hostname (url) from which the page is operating. 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.
Here’s a quick demo of the functionality.
c:\inetpub\temp\DWASFiles\sites\0e2a5662-8d4f-49fb-a4aa-7fd19069401b\VirtualDirectory0\site\wwwroot\Views\Partials\Grid\Editors\VideoBlock.cshtml(220): error CS0104: 'Dictionary' is an ambiguous reference between 'Dragonfly.NetHelpers.Dictionary' and 'Dragonfly.Umbraco7Helpers.Dictionary'