【发布时间】:2013-08-14 07:34:37
【问题描述】:
我有以下几点:
Web.Config(这是 NLog 配置的一部分)
<target name="fileAsException"
xsi:type="FilteringWrapper"
condition="length('${exception}')>0">
... removed ...
</target>
当使用 release 构建时,这会被翻译成以下内容:
<target name="fileAsException"
xsi:type="FilteringWrapper"
condition="length('${exception}')>0">
... removed ...
</target>
如您所见,condition 表达式已经过 HTML 编码,导致 &gt; 替换了 >。这会导致条件不起作用。
在我的web.release.config 文件中没有任何特定的内容,它只是从基础web.config 复制过来的。
如何抑制这种编码?
【问题讨论】:
标签: web-config msdeploy xdt-transform publish-profiles web.config-transform