2
I am having difficulty using several 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>
But when I call the estate BASE_URL
, it is returning me the value of the main config and not in the modifier, even if I use the Release configuration to build the project.
I’m using C# MVC4 in VS2013
Thanks for the tip Thiago, but I j[a had done this, I found that web.config differentials only work when we publish the project, but it was worth the intention
– AndrehOdon