【发布时间】:2011-07-14 23:58:36
【问题描述】:
我一直在部署 ASP.NET 网站并使用 web configuration transforms 管理它们的配置,并使用如下命令构建它们:
MSBuild.exe MyMvcProj.csproj /P:Configuration:CustomConfiguration1
我还有一个控制台应用程序,我需要使用不同的配置多次部署它,我想知道是否有任何类似的机制可用于构建项目并使用不同的配置进行部署?
我遇到过an article using custom XSLT to handle multi environment configs,但这似乎是一个非常复杂和混乱的解决方案。
提前致谢!
【问题讨论】:
标签: c# .net configuration web-config-transform slowcheetah