Azure web.config per environment

前端 未结 5 1882
春和景丽
春和景丽 2020-12-17 07:54

I have a Azure project (Azure 1.3) in VS2010. There are 2 webroles, one web page project and one WCF project. In debug mode I want the web project to use a web.config for DE

5条回答
  •  旧时难觅i
    2020-12-17 08:30

    Currently I am facing issues when using a Web.Debug.config with transform XSLT. It doesn't seem to work in Azure....

    It depends on whether you want to make it work on your local machine or inside continuous integration.

    • For the local machine I tried to answer here: https://stackoverflow.com/a/9393533/182371
    • For the continuous integration it's even easier. When you build from the command line specifying the Configuration property value your configs WILL be transformed (no matter what it does when you build inside VS). So properly specifying build configurations for both cloud and web project will give you the correct output depending on build parameters.

提交回复
热议问题