I store several different connection strings in my web.config for development and testing. All but one is commented out so I can change info as needed.
When I publish, I
What I did based on this answer was the following:
connectStrings
section in Web.config
which contains commented out connection strings used during debug time;connectionStrings
section with the correct connection string to be used when the app is deployed.So in your Web.config
transform file you have something like this: