【发布时间】:2024-01-01 16:51:01
【问题描述】:
如何指定应在由 Visual Studio Team Services 中的自动构建触发的 Azure 部署中使用哪个 .cscfg 文件?
这是我目前的情况:
- 我有一个在 Visual Studio Team Services 中使用 Git 的解决方案,其中包含一个 Azure Web 角色和一个 Azure 辅助角色。
- 在解决方案中,我设置了两个
.cscfg文件 - 一个用于我的 Azure 暂存环境 (ServiceConfiguration.CloudTest.cscfg),另一个用于我的 Azure 生产环境 (ServiceConfiguration.Cloud.cscfg)。 - 我可以手动触发从 Visual Studio 到任一环境的部署
- 我在 VS Team Services 中使用
GitContinuousDeploymentTemplate.12.xaml自动构建它部署到我的集成测试环境,但显然应用了ServiceConfiguration.Cloud.cscfg文件。我想这是有道理的,因为这是默认的.cscfg文件名
但是,我看不到在构建过程中可以指定不同的.cscfg 文件名的位置。有没有办法可以指定在部署过程中使用哪个.cscfg 文件?
【问题讨论】:
标签: git azure azure-worker-roles azure-devops