微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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组合.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐