2013-03-14 193 views
1

我很新这 我想变换web.config时,我在网上搜索我发现SlowCheetah,但我 无法转换的设置,因为我可以找到任何常见的属性值 下面是一个我想改造转换web.config

<smtp deliveryMethod="Network" > 
     <network host="xxx" userName="xxxx" password="xxx" port="xxx" enableSsl="xxx" defaultCredentials="false" /> 
    </smtp> 

这是我想将其改造成

<smtp deliveryMethod="SpecifiedPickupDirectory" from="xxxxx"> 
    <specifiedPickupDirectory pickupDirectoryLocation="C:\" /> 
    </smtp> 

感谢ü提前

回答

2

您可以使用以下转换。

<smtp deliveryMethod="SpecifiedPickupDirectory" from="xxxxx" xdt:Transform="SetAttributes"> 
    <network xdt:Transform="Remove" /> 
    <specifiedPickupDirectory pickupDirectoryLocation="C:\" xdt:Transform="Insert" /> 
</smtp> 

您可以找到有关MSDN上的所有变换功能的更多信息:http://msdn.microsoft.com/en-us/library/dd465326.aspx

+0

谢谢U,你是一个生命的救星 – 2013-03-14 12:04:49