我有一个 DNN list 文件:
<configuration>
<nodes>
<node path="/configuration/appSettings" action="update" key="key" collision="overwrite">
<add key="LocalCurrencyCode" value="ARS"/>
</node>
为了卸载,我有这个:
<uninstall>
<configuration>
<nodes>
<node path="/configuration/appsettings/add[@name='LocalCurrencyCode']" action="remove" />
但是,当我卸载该模块时,该设置不会从 web.config 中删除。 谁能看出我做错了什么吗?
最佳答案
已修复:
<uninstall>
<configuration>
<nodes>
<node path="/configuration/appSettings/add[@key='InvoiceEmailSubject']" action="remove" />
事实证明我需要“appSettings”,因为 xml 节点区分大小写。我还需要使用上面 Dexterity 提供的 @key=。
关于web-config - DNN 模块卸载如何从 web.config 中删除设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30459776/