c# - Correct way to Switch between Dev, Test and Prodcution Services in Builds -
i have client side app (wpf) hits web services.
when running in dev want hit dev version of these web services. when running in test environment want hit test version of services. wise production.
since these values in app.config file best way switch between them?
another single config file way along lines of:
<add key="service-dev" value="serviceurl"/> <add key="service-uat" value="serviceurl"/> <add key="service-prod" value="serviceurl"/>
if app knows environment it's running in pull 1 need.
up though. i've used multiple config approach deployment scripts deploy correct file requested deployable environment.
Comments
Post a Comment