Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternate configs
Message
 
 
À
02/02/2017 08:25:56
Information générale
Forum:
Visual Studio
Catégorie:
Éditeur de texte
Divers
Thread ID:
01647323
Message ID:
01647335
Vues:
31
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform