I'm trying to figure out how to use Solution Configuration Management in Visual Studio to set a MySQL Connection string depending on what build configuration but am fairly new to this.
I've found plenty of info on the XML for the App.config file for creating connection strings, but am unclear on how to tell the different configuration modes (excuse my lack of known terminology) to use different connection strings.
EG. I want independent environments for development and production, each use a different SQL database so as to not be developing on any production database.
What I have so far in app.config:
<connectionStrings>
<add name="Debug" connectionString="debguconnectionstring"/>
<add name="Production" connectionString="productionconnectionstring"/>
</connectionStrings>
It may simply be that my lack of terminology is hindering my Google-ing capability, so even if someone could point me to a guide or dupe thread that would be excellent.
Thanks!
EDIT:
Thanks all for your answers, sadly I can only mark one of them as the correct answer. +Rep for everyone, exactly what I was looking for. Thanks again!