We have a website created in VS 2012. We've right-clicked our web.config file and selected 'Add Config Transform' and created Release and Debug versions of web.config.
In them we've added some new entries to the <appSettings> section in both our Debug and Release versions of web.config:
<appSettings>
<add key="username" value="user" xdt:Transform="Insert" xdt:Locator="Match(key)"/>
<add key="password" value="pwd" xdt:Transform="Insert" xdt:Locator="Match(key)"/>
<add key="GET" value="https://somewhere.com/url1" xdt:Transform="Insert" xdt:Locator="Match(key)"/>
<add key="POST" value="https://somewhere.com/url2" xdt:Transform="Insert" xdt:Locator="Match(key)"/>
</appSettings>
We have experimented with the various transform types, including 'Insert' and 'SetAttribute'. None so far have produced the desired result of adding those new appSettings entries to web.config after a build.
Do we need to put placeholder entries for them in web.config, or is there another step(s) to this we're missing?
[Edit] the appSettings above are contained in the <configuration> element in the Debug and Release versions of web.config.