When deploying applications, there is usually a separate machine for production and development. Most applications have settings in a regular. NET file App.configor Web.config. For instance:
<add key="Dev_Setting1" value="val1"/>
<add key="Prod_Setting1" value="val2"/>
<add key="Prod_Setting1" value="val3"/>
<add key="Prod_Setting2" value="val4"/>
We would like applications to automatically choose between two sets of settings, depending on the machine. Is there a standard way to do this? Other suggestions are welcome.
source
share