I am trying to use XmlMassUpdate to update my configuration files based on the version type of the assembly. There seems to be no documentation on how to update app.config (vs2008) settings formats anywhere.
This is the configuration section:
<applicationSettings> <CTC.Mica.ClientService.Properties.Settings> <setting name="PipeName" serializeAs="String"> <value>\\.\pipe\micaPipe</value> </setting> <setting name="CTC_Mica_ClientService_MicaWebService_MicaWebService" serializeAs="String"> <value>URL</value> </setting> </CTC.Mica.ClientService.Properties.Settings> </applicationSettings>
And I'm trying to update the URL value from this file:
<Debug> <setting xmu:key="name" name="CTC_Mica_ClientService_MicaWebService_MicaWebService" serializeAs="String"> <value>DEVURL</value> </setting> </Debug> <Test> <setting xmu:key="name" name="CTC_Mica_ClientService_MicaWebService_MicaWebService" serializeAs="String"> <value>TESTURL</value> </setting> </Test> <Release> <setting xmu:key="name" name="CTC_Mica_ClientService_MicaWebService_MicaWebService" serializeAs="String"> <value>LIVEURL</value> </setting> </Release>
By running the script, I can replace the "name" or "serializeAs" attributes, but not the node value.
How do I go about replacing a node value?
Hello
tris
Tristan
source share