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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -