:このweb.configセクションをどのように変換しますか?私は私のメールの設定を以下のいる
<system.net>
<mailSettings>
<smtp from="[email protected]" deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="C:/test"/>
<network host="localhost" userName="" password=""/>
</smtp>
</mailSettings>
</system.net>
これは私の.Releaseバージョンです:
<system.net>
<mailSettings>
<smtp from="[email protected]" xdt:Transform="RemoveAttributes(deliveryMethod)">
<network xdt:Transform="Replace" host="192.168.1.9" userName="" password="" />
</smtp>
</mailSettings>
</system.net>
どのように私は
<specifiedPickupDirectory pickupDirectoryLocation="C:/test"/>
を削除するにはそれが私には表示されません。すべて解放しますか?
また、System.Diagnostics
のような他の名前空間も完全に削除したいと思います。そのための構文は何ですか?
..あなたが複数の子タグを持っている場合を考えます。したがって、質問。私は他の変換の多くをやっているし、異なる設定をして手動で公開する方がはるかに簡単です。 – katit
-1:彼はVisual Studio 2010の機能であるweb.configトランスフォームについて明示的に尋ねました。 –
私はJohnに同意します。彼は設定の変換について尋ねています。あなたのコードは、その機能を利用できるようになるまでの数日間の後戻りです。 – NotMe