Trying to get simple
<appSettings> for dev vs. prod.
<appSettings> <add key="hello" value="debug" /> </appSettings>
<appSettings> <add key="hello" value="prod" /> </appSettings>
When I have it in Debug mode, and run my MVC site, I can do a simple
return Content(WebConfigurationManager.AppSettings["hello"]); in my
HomeController.Index and it returns
dev. If I switch the mode to
Release it still returns
dev. I'd like to simulate prod mode without actually publishing to prod.