【发布时间】:2011-09-27 09:09:55
【问题描述】:
在我们的自动构建中,我们将 MSBuild 与 web.config transformation 结合使用来创建验收配置和生产配置。
我们添加了属性来更改配置设置
例如更改cdn url。
<add key="cdn1url" value="http://cdn.acceptance.oursite.com/"
xdt:Transform="SetAttributes"
xdt:Locator="Match(key)" />
有人知道是否可以添加自动增量属性吗?我们希望在每个生产版本上将+1 添加到版本属性(用于css/img/js 缓存)。
另一个选项可能是Teamcity 内部版本号,但我不确定这是否可能
【问题讨论】:
标签: asp.net msbuild build-automation teamcity transformation