Asp.net 如何使用web.config转换在应用程序设置部分插入新密钥
我想在应用程序设置部分插入新的键值,其他键值应保持不变 下面是我的源代码配置Asp.net 如何使用web.config转换在应用程序设置部分插入新密钥,asp.net,azure-devops,web-config,web.config-transform,xdt-transform,Asp.net,Azure Devops,Web Config,Web.config Transform,Xdt Transform,我想在应用程序设置部分插入新的键值,其他键值应保持不变 下面是我的源代码配置 我建议你按照我上面看到的做 <add key="WFCredentials03" value="userid@test123|password@Mango| server@https://test/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/> 您应该将xdt:Transform=“SetAttributes”更改为xdt
我建议你按照我上面看到的做
<add key="WFCredentials03" value="userid@test123|password@Mango| server@https://test/"
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
您应该将
xdt:Transform=“SetAttributes”
更改为xdt:Transform=“Insert”
,我建议您按照上面的说明操作
<add key="WFCredentials03" value="userid@test123|password@Mango| server@https://test/"
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
您应该将
xdt:Transform=“SetAttributes”
更改为xdt:Transform=“Insert”谢谢,现在我可以使用上面的插入键在目标配置文件中获取它。谢谢,现在我可以使用上面的插入键在目标配置文件中获取它。
<add key="WFCredentials03" value="userid@test123|password@Mango| server@https://test/"
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>