【发布时间】:2012-05-17 09:22:59
【问题描述】:
我有两个构建环境可以定位;发布和分期。 Web.config 如下所示:
<system.web>
<authentication mode="Windows">
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
我想通过构建到暂存配置来转换它:Web.Staging.config
<system.web>
<authentication mode="Windows">
</authentication>
<authorization xdt:Transform="Replace">
<deny users="?" />
<allow roles="StagingRoles" />
<deny users="*" />
</authorization>
</system.web>
我是这样从命令行构建的:
msbuild buildscript.build /p:Configuration=Staging
构建后,我没有看到构建工件文件夹中转换的 web.config 文件。这里有什么问题吗?
谢谢
【问题讨论】:
标签: msbuild