I don't know what I'm doing wrong, but I almost feel like I tried everything. I cannot force my project's web.config to convert with changes to web.debug.config. I read somewhere that transformation only happens when published. Then I read that SlowCheetah can handle this, so I installed it in my project. It also does not matter.
Launch of VS 2012 Express. I am debugging using the local IIS Express server that VS has installed. I am running Firefox as my browser.
web.config:
<appSettings> <add key="SiteUrl" value="http://development.mysite.com/" /> </appSettings>
web.debug.config:
<appSettings> <add key="SiteUrl" value="http://localhost:4652/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" /> </appSettings>
I also tried using Replace:
<appSettings> <add key="SiteUrl" value="http://localhost:4652/" xdt:Transform="Replace" xdt:Locator="Match(key)" /> </appSettings>
When running in the debug configuration locally:
string siteurl = ConfigurationManager.AppSettings["SiteUrl"];
Still the result of aturl http://development.mysite.com/
I started Preview Transform by right-clicking on web.debug.config and it shows that the conversion is doing fine, but not when I launch the web application locally.
Frankly, I do not see how to configure SlowCheetah. I see no way to configure it, and I thought that it could "something" on its own .: S
Does anyone know how to overcome this or if I do something wrong?
source share