网络配置不变换与Visual Studio在线,VS2013和Azure的工作 [英] Web config transforms not working with Visual Studio online, VS2013 and Azure
问题描述
我有一个MVC5网站使用从Visual Studio在线(TFS)持续集成成功部署分期和产能释放天青。
我按照这篇博客文章结果
<一href=\"http://chriskirby.net/continuous-delivery-to-azure-websites-with-git-using-custom-deployment-script/\"相对=nofollow>持续交付使用自定义部署脚本使用Git的Azure网站
我甚至还说,是构建我的发布配置所需的构建。即结果 stagingbuild |
任何CPU。
注意:这是不是在上述博客文章中提到
块引用>该网站上部署确定利用VS2013构建但CONFIGS不会改变。我只是得到了默认的
的web.config 为code>设置,而不是从
web.staging.config 为code>等转化的人p>
注意:我只是想
appSetting
此刻将一种得到它的工作。
块引用>我完全理解如何编写转换,所以我不认为这是一个问题,当我preVIEW我在VS2013的转换,他们在previewer窗口变换。
注意:我不是直接从出版VS承诺,但我改变回购和持续集成从我的Visual Studio在线回购在开幕
块引用>解决方案尝试:
- 开启构建在团队资源
- 修改生成定义您的身材
- 设置过程>生成>配置> 任何CPU |。发布或任何其他配置/ 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 post
Continuous 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 fromweb.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 Explorer
- Edit Build Definition of your build
- Set Process > Build > Configurations > Any CPU|Release or any other configuration/CPU combo.
这篇关于网络配置不变换与Visual Studio在线,VS2013和Azure的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!