Change App.config based on configuration build?
I have a console application that can be run against 3 different urls (dev, it, prod), I need to change certain settings based on the environment I’m running it in. My project currently has 4 config files (app.config, dev.config, it.config, prod.config), and obviously the only one that matters when I build is app.config. Currently I have to copy and paste from environment to app.config, I know such a complicated task.
Is there a way to set up 3 configurations and use the respective config file and automate this tedious task?
0 comments:
Post a Comment