In my web.config, I have a setting which contains XML, similar to the below:
@@@
`
@@@
I’ve added a Variable to my deployment which should replace this setting, however the actual value which ends up in web.config seems to be escaped, so, instead of:
@@@
@@@
I end up with:
@@@
<bar><someNode name=“deployed” /> etc etc
@@@
This is a side effect of the current design. Normally with variables people expect to enter the unescaped value; that’s because the same variable value might be used in PowerShell scripts, in IIS paths, and so on. So when we swap values into XML we perform the escaping for you.
The only workaround would be to use your Deploy.ps1 script and have PowerShell modify the config file and swap the values in.