网络配置不变换与Visual Studio在线,VS2013和Azure的工作 [英] Web config transforms not working with Visual Studio online, VS2013 and Azure

查看:175
本文介绍了网络配置不变换与Visual Studio在线,VS2013和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 设置,而不是从 web.staging.config


  

注意:我只是想 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 script

I 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 working

I 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆