加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

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

发布时间:2020-12-16 07:41:09 所属栏目:asp.Net 来源:网络整理
导读:我有一个MVC5网站使用Visual Studio Online(TFS)的持续集成成功地将暂存和生产版本部署到Azure. 我关注过这篇博文 Continuous Delivery to Azure Websites with git using custom deployment script 我甚至添加了构建到我的发布配置文件所需的构建.即. stagi
我有一个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组合.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读