0
votes

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

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.

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

VS2015 dialog:

Visual Studio 2015 azure resource group deploy dialog

1
do you build using the correct config (did you select "Release" instead of "Debug"?)techmike2kx
yes, active solution configuration in VS is correct (e.g Release, not Debug). Both web project and deployment project build configuration in solution configuration are also correctsamfromlv

1 Answers

1
votes

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>

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