You need to add a solution configuration in order to add web.config transformations.
- Right click on your solution (in solution explorer)
- Select "Configuration manager" and in the "Active solution
configuration" dropdown, click on new.
- Enter a configuration name (like "local" for instance)
- Copy settings from debug (seems more appropriate for development)
- Check "Create new projects configuration".
Set your projects configuration aswell, and when you're done, right click on the web.config, select "add transforms" and you're good to go !
Then, when you want to use your local connection string, just use this configuration instead of debug.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…