msbuild を使用して、web.config ファイルから connectionStrings セクションをクリアしたいと考えています。
それを行う最も簡単な方法は何ですか?
以前に XmlMassUpdate を使用して値を置き換えましたが (この質問も参照してください: XmlMassUpdate - Replace Value Node )、それを完全に削除する方法は見つかりませんでした。
詳細:
web.config のセクションを
<接続文字列> <add name="connectionString1" connectionString="Data Source=localhost\SQLEXPRESS;Initial Catalog=Db1;Integrated Security=True" /> </接続文字列>
に
<接続文字列> </接続文字列>