1

私はかなり新しいですこれは私が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>

よろしくお願いします

4

1 に答える 1

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を参照してください。

于 2013-03-14T10:00:26.803 に答える