We have a Continuous Deployment system which allows us to deploy to different environments.
In the default Web.config, we have the following xml line commented out:
<!--<add key="EventLogger.MessageSize" value="4096" />-->
In a particular QA environment I need the previous message to be overwritten by what's in the Web.QA1.config file:
<add key="EventLogger.MessageSize" value="1024" xdt:Transform="Insert" xdt:Locator="Match(key)"/>
I've tried a couple of different things, including xdt:Transform="SetAttributes", but nothing seems to work. When the code is deployed to the QA environment, the EventLogger.MessageSize key is still completely commented out. I need this key commented out in the default Web.config, but it also needs to be uncommented out for QA environments.
Am I using the wrong value for xdt:Transform or something?