I'm having difficulty using multiple web.config on my system.
In my web.config
main I have the following configuration:
<configuration>
<appSettings>
<add key="BASE_URL" value="/mvc/" />
</appSettings>
</configuration>
And in my file web.release.config
I have the following modification:
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<appSettings>
<add key="BASE_URL" value="/mvc" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
</appSettings>
</configuration>
However, when I call the property BASE_URL
, it is returning me the value of the main config and not the modifier, even though I use the Release configuration to build the project.
I'm using C # MVC4 in VS2013