Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 04, 2012 09:11 AM by raduenuca
May 04, 2012 09:00 AM|LINK
I wanna perform integration tests with specific settings, so I added new active solution configuration (Test) and also defined Web.Test.config in my MVC4 app. Does anybody know what else must I do, so then when I start website in Test mode, it loads correct
May 04, 2012 09:11 AM|LINK
The web.config transformation works only when you deploy the project. In order to have a specific web.config file for a specific configuration (like, Integration, production, etc) you need to do a little trick. See here:
Please note that if you use TFS (or other source control) you need to select the web.config then File\Source Control\Exclude Web.config from Source Control (the variations Web.config.Debug, Web.config.Integration and so on can stay under source control).