Transform web.config for Azure Website Deployment for each release environment

前端 未结 2 1815
温柔的废话
温柔的废话 2021-02-10 03:20

In Visual Studio Team Services (was Visual Studio Online), I have three release environments each with an Azure Website Deploy step.

I can transform the web.config for t

2条回答
  •  你的背包
    2021-02-10 04:07

    Web.config is transformed during the build process, if you generate the deployment package from "Build" and then deploy it in "Release", then you cannot transform it before deployment.

    You can use Web Deploy Parameterization to update the values in web.config before deployment. More information for your reference: Web Deploy Parameterization vs Web.config Transform.

    And you can also use Replace Tokens task to replace the values in web.config file before deployment.

提交回复
热议问题