VS2015 Azure资源管理器的“部署"对话框忽略引用项目的解决方案和项目生成配置 [英] VS2015 Azure Resource Manager deploy dialog ignores solution and project build configuration for referenced projects

查看:91
本文介绍了VS2015 Azure资源管理器的“部署"对话框忽略引用项目的解决方案和项目生成配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目标是部署VS2015中带有WebDeploy包的Azure App Service,并根据当前解决方案构建配置应用所有web.config转换.

Goal is to deploy Azure App Service with WebDeploy package from VS2015 with all web.config transformations applied according to current solution build configuration.

我尝试将构建配置添加到ARM部署项目中,并且当您从Visual Studio进行构建时,它可以正常工作.使用正确的web.config转换创建了用于Web项目的WebDeploy程序包.但是,如果使用部署"对话框,则始终使用Deployment.targets文件中的默认构建配置(Debug)来构建和打包引用的Web项目.

I have tried adding build configuration to ARM deployment project and it works fine when you build it from Visual Studio. WebDeploy package for web project is created with correct web.config transformation applied. However if you use Deploy dialog referenced web project is always built and packaged with default build configuration (Debug) from Deployment.targets file.

是否可以将当前的解决方案配置用于ARM部署?

Is it possible to use current solution configuration for ARM deployment?

VS2015对话框:

VS2015 dialog:

推荐答案

samfromlv-我认为我们这里有个错误,请尝试...打开资源组项目的Deployment.targets文件.即将最高更改配置默认为您的配置名称(例如Release)

samfromlv - I think we have a bug here, try this... open the deployment.targets file for your resource group project. Towards the top change configuration default to whatever your configuration name is (e.g. Release)

    <Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>

尝试一下,这可能取决于您创建项目所使用的SDK版本,因此如果lmk无法正常工作.

Try that, it may depend on what version of the SDK your project was created under so if it doesn't work lmk.

这篇关于VS2015 Azure资源管理器的“部署"对话框忽略引用项目的解决方案和项目生成配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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