Web配置转换不能与Visual Studio在线,VS2013和Azure一起使用 [英] Web config transforms not working with Visual Studio online, VS2013 and Azure

查看:530
本文介绍了Web配置转换不能与Visual Studio在线,VS2013和Azure一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MVC5网站使用Visual Studio Online(TFS)的持续集成,成功地部署了一个临时和生产版本到Azure。

我已经跟随这个博客文章< br>
持续交付通过git使用自定义部署脚本到Azure网站



我甚至添加了构建我的发布配置文件所需的构建。即。

stagingbuild |任何cpu


注意:上述博客post。


这些网站部署确定使用VS2013构建,但配置不转换。我只是得到默认的 web.config 设置,而不是从 web.staging.config 等转换的。 p>


注意:我只是试图转换一个 appSetting


我完全理解如何写转换,所以我不认为这是一个问题,当我

:我不是直接从VS发布的,而是在VS2013中预览我的转换,他们在预览窗口中转换。


<但是从我的Visual Studio Online库中提交我的更改repo和持续集成。



解决方案

尝试:




  • 团队资源管理器中打开构建 $ 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 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.

这篇关于Web配置转换不能与Visual Studio在线,VS2013和Azure一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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