Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternate configs
Message
From
03/02/2017 14:06:11
 
 
General information
Forum:
Visual Studio
Category:
Text editor
Miscellaneous
Thread ID:
01647323
Message ID:
01647456
Views:
28
>>I use app.config to hold connection data.
>>Switching servers during development is tedious.
>>Since I can't include comments in the app.config, I have to type all the credentials each time I switch.
>>I'd like some way of commenting/uncommenting credentials, dependng on the server or db I want to use.
>>Any ideas?
>
>Couple of solutions here: http://stackoverflow.com/questions/8082662/how-to-select-different-app-config-for-several-build-configurations
>
>Haven't tried SlowCheetah but seems to work in the same way as the built-in transforms in asp.net for web.config. If it does what it says on the tin I'd go with that.
>Next best is using the 'after-build' approach mentioned in the same post. Downside of that is that you need to keep the whole of each alternate app.config up to date which can be a pain to maintain......

Thank you, Viv.
The comments help a lot, but I'll look at Slow Cheetah
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Reply
Map
View

Click here to load this message in the networking platform