【发布时间】:2014-04-02 09:38:03
【问题描述】:
我使用 nant 进行构建自动化。在我的 nant 文件中,我包含了另一个包含我使用的所有属性的 peroperty 文件。
稍后我使用现有属性替换我的 web.config 文件中的令牌
<copy file="web.config" tofile="templateed.web.config" overwrite="true">
<filterchain>
<expandproperties/>
</filterchain>
</copy>
在属性文件中我有以下属性
<property name="url" value="/test?key=1&value=1" />
结果:/test?key=1&amp;value=1
预期:/test?key=1&amp;value=1
有人知道怎么做吗?
谢谢!
于尔格
【问题讨论】: