I am working on a .Net project which updates .config files using xsl.transform. It works perfectly with a .config file which has <configuration>
node, but it does not update the .config file with <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
node. It does not give an error and copies everything from the .config file, but it does not update the desired element.
So here is a short example between the .config files:
-this is updated:
<configuration>
<configSections>
-sections-
</configSections>
-settings-
</configuration>
-this is not updated:
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
-sections-
</configSections>
-settings-
</configuration>
Is there a solution to update the .config files with the xmlns attribute of the configuration element?
Thank you.