本文介绍了Web配置转换不能与Visual Studio在线,VS2013和Azure一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个MVC5网站使用Visual Studio Online(TFS)的持续集成,成功地部署了一个临时和生产版本到Azure。我已经跟随这个博客文章 持续交付通过git使用自定义部署脚本到Azure网站 我甚至添加了构建我的发布配置文件所需的构建。即。 stagingbuild |任何cpu 。 注意:上述博客post。 这些网站部署确定使用VS2013构建,但配置不转换。我只是得到默认的 web.config 设置,而不是从 web.staging.config 等转换的。 p> 注意:我只是试图转换一个 appSetting 我完全理解如何写转换,所以我不认为这是一个问题,当我 :我不是直接从VS发布的,而是在VS2013中预览我的转换,他们在预览窗口中转换。 解决方案尝试: 在团队资源管理器中打开构建 $ b 配置/ CPU组合。 I have an MVC5 website successfully deploying a staging and production release to Azure using continuous integration from Visual Studio Online (TFS).I have followed this blog postContinuous Delivery to Azure Websites with git using custom deployment scriptI have even added the build that is required to build to my publish profiles. ie.stagingbuild | any cpu. note: this was not mentioned in the above mentioned blog post.The sites deploy ok using by VS2013 build but the configs are not transformed. I just get the default web.config settings and not the transformed ones from web.staging.config etc. note: I am only trying to transform one appSetting at the moment to get it workingI totally understand how to write transforms so I don't think this is an issue and when I preview my transforms in VS2013 they transform in the previewer window. 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. 解决方案 Try:Open Builds in Team ExplorerEdit Build Definition of your buildSet Process > Build > Configurations > Any CPU|Release or any other configuration/CPU combo. 这篇关于Web配置转换不能与Visual Studio在线,VS2013和Azure一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-24 04:50