我在
this useful post
:
<connectionStrings xdt:Transform="RemoveAttributes(configProtectionProvider)">
<EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
xmlns="http://www.w3.org/2001/04/xmlenc#" xdt:Transform="Remove" xdt:Locator="Match(Type)" />
<add xdt:Transform="Insert" name="CDSsvcUsername" connectionString="username"/>
<add xdt:Transform="Insert" name="CDSsvcPassword" connectionString="password"/>
</connectionStrings>
所以我打电话来
xdt:Transform="Remove"
总的来说
Encrypted
元素以及移除
configProtectionProvider
属性打开
connectionStrings
.
仅在指定
xdt:Locator
在删除转换中。