문제

I have the following:

Web.Config (this is a segment of an NLog configuration)

<target name="fileAsException" 
        xsi:type="FilteringWrapper" 
        condition="length('${exception}')>0">
    ... removed ...
</target>

This is translated to the following when built with release:

<target name="fileAsException" 
        xsi:type="FilteringWrapper" 
        condition="length('${exception}')&gt;0">
    ... removed ...
</target>

As you can see the condition expression has been HTML Encoded resulting in the &gt; replacing the >. This causes the condition to not work.

There is nothing specific to this within my web.release.config file, it is simply copied over from the base web.config.

How can I suppress this encoding?

도움이 되었습니까?
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top