我的 web.config 中有一些连接字符串,我想在部署 Web 应用程序时使用 web.config 转换删除它们。我发现 MSDN 页面谈论 web.config 转换,但它只列出了删除第一个条目的“Remove”或删除它们的“RemoveAll”。有没有办法只删除特定的连接字符串?
<connectionStrings>
<add name="DB"
connectionString="Data Source=; Initial Catalog=; User ID=; Password=;"
providerName="System.Data.SqlClient" />
<add name="ErrorLog"
connectionString="Data Source=; Initial Catalog=; User ID=; Password=;"
providerName="System.Data.SqlClient" />
<add name="SiteFiles"
connectionString="" />
<add name="FanFiles"
connectionString="" />