We would like to use msbuild to clear the connectionStrings section from the web.config file.
What is the easiest way to do this?
Earlier we used XmlMassUpdate to replace values (see also this question: XmlMassUpdate - Replace Node value ), but we did not find a way to completely remove it.
More details:
We would like to change the section in web.config from
<connectionStrings>
<add name = "connectionString1" connectionString = "Data Source = localhost \ SQLEXPRESS; Initial Catalog = Db1; Integrated Security = True" />
</connectionStrings>
to
<connectionStrings>
</connectionStrings>
source share