I have been using the Tigris community tasks to update various AppSettings keys using the XMLUpdate task.
Now, however I want to add a node to the system.net section to set up the proxy.
I declared a property
<PropertyGroup>
<proxy><defaultProxy> <proxy usesystemdefault="False" proxyaddress="http://IPADDRESS:PORT" /> </defaultProxy></proxy>
</PropertyGroup>
and the XMLUpdate Task looks like
<XmlUpdate
Prefix="n"
Namespace="http://schemas.microsoft.com/.NetConfiguration/v2.0"
XmlFileName="$(BuildDir)\Builds\_PublishedWebsites\Presentation\Web.config"
XPath="/n:configuration/n:system.net"
Value="$(proxy)" />
this updates the web config however it updates directly from the property group i.e. doesn't convert the escape characters for the angle brackets. Does anyone have any ideas?