我有以下的邮件配置:
<system.net>
<mailSettings>
<smtp from="foo@bar.com" deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="C:/test"/>
<network host="localhost" userName="" password=""/>
</smtp>
</mailSettings>
</system.net>
这是我的.Release版本:
<system.net>
<mailSettings>
<smtp from="foo@bar.com" xdt:Transform="RemoveAttributes(deliveryMethod)">
<network xdt:Transform="Replace" host="192.168.1.9" userName="" password="" />
</smtp>
</mailSettings>
</system.net>
如何移除
<specifiedPickupDirectory pickupDirectoryLocation="C:/test"/>
那么它根本不会显示在我的 .Release 中吗?
另外,我想完全删除其他名称空间,比如 System.Diagnostics
。这样做的语法是什么?