asp.net – Web配置转换不适用于Visual Studio online,VS2013和Azure

我有一个MVC5网站使用Visual Studio Online(TFS)的持续集成成功地将暂存和生产版本部署到Azure.

我关注过这篇博文
Continuous Delivery to Azure Websites with git using custom deployment script

我甚至添加了构建到我的发布配置文件所需的构建.即.
stagingbuild |任何cpu.

note: this was not mentioned in the above mentioned blog post.

这些站点使用VS2013构建部署正常,但配置不会被转换.我只是获取认的web.config设置,而不是web.staging.config等转换后的设置.

note: I am only trying to transform one appSetting at the moment to get it working

我完全理解如何编写变换,所以我不认为这是一个问题,当我在VS2013中预览我的变换时,它们会在预览窗口中变换.

note: I am not publishing directly from VS but committing my changes to repo and continuous integration kicks in from my Visual Studio Online repo.

解决方法

尝试:

>在团队资源管理器中打开构建>编辑构建的构建定义>设置流程>构建>配置>任何cpu | Release或任何其他配置/ cpu组合.

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....