Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternate configs
Message
 
 
To
02/02/2017 08:25:56
General information
Forum:
Visual Studio
Category:
Text editor
Miscellaneous
Thread ID:
01647323
Message ID:
01647335
Views:
30
>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?

As far as I know, app.config is an xml file. Therefore, why you cant' use standard xml file comments? E.g.
    <!--  this entry line is commented <SqlServerName></SqlServerName>   -->
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform