的Visual Studio Online网站被部署到Azure在调试模式 [英] Visual Studio Online website gets deployed to Azure in debug mode

查看:193
本文介绍了的Visual Studio Online网站被部署到Azure在调试模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了我承诺到Visual Studio在线(GIT回购),并链接到Windows Azure的网站自动部署(如果所有单元测试成功)一个ASP.NET MVC的Web应用程序项目。我的项目包含默认Web.Release.config改造应该删除的Web.config属性 /configuration/system.web/compilation/@debug 应(其中包括)启用脚本捆绑。

I created an ASP.NET MVC web application project which I commit to Visual Studio Online (Git repo) and is linked to a Windows Azure website for automatic deployment (if all unit tests succeed). My project contains the default Web.Release.config transformation that should remove the Web.config attribute /configuration/system.web/compilation/@debug which should (amongst others) enable script bundling.

这似乎在部署期间不执行的web.config改造,所以我想它构建/部署过程中不使用Release配置。

It appears the web.config transformation is not executed during deployment, so I guess it doesn't use the Release configuration during build/deployment.

我还没有找到一个方法来改变在Visual Studio Online中的默认生成定义。

I also don't find a way to alter the default build definition in Visual Studio Online.

如何获得Visual Studio的在线/ Azure的使用发布版本的配置部署我的项目?

How can I get Visual Studio Online/Azure to deploy my project using Release build configuration?

推荐答案

更新您的生成定义来指定要构建成为一个发布版本。要做到这一点,在团队资源管理器,转到构建部分。您构建定义单击鼠标右键,选择编辑生成定义。在生成定义设置,单击过程节点。在 2.Build ,将您的配置任何CPU |。发布

Update your Build Definition to specify you want the build to be a release build. To do this, in Team Explorer, go to the Builds section. Right-click on your build definition and select Edit Build Definition. In the Build Definition settings, click on the Process node. Under 2.Build, set your Configurations to Any CPU|Release.

下面是引用的屏幕截图。

Here's a screen capture for reference.

这篇关于的Visual Studio Online网站被部署到Azure在调试模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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