I have following config for my mail:
<system.net>
<mailSettings>
<smtp from="foo@bar.com" deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="C:/test"/>
<network host="localhost" userName="" password=""/>
</smtp>
</mailSettings>
</system.net>
This is my .Release version:
<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>
How do I remove
<specifiedPickupDirectory pickupDirectoryLocation="C:/test"/>
so it doesn’t show in my .Release at all?
Also, I would like to remove other namespaces like System.Diagnostics completely. What is the syntax for doing so?
For
specifiedPickupDirectoryelement this should work:<specifiedPickupDirectory xdt:Transform="RemoveAll" />.For System.Diagnostics:
<system.diagnostics xdt:Transform="RemoveAll"></system.diagnostics>