Make Web.config transformations work locally

后端 未结 2 770
日久生厌
日久生厌 2020-12-02 12:38

I want to get web.config transformations working locally but apparently the transformations only occur when doing deployments.

Does anybody know of a way to run the

2条回答
  •  情书的邮戳
    2020-12-02 12:50

    If you are using Visual Studio 2015, you can just right click on the transform of the desired environment, and click "View Preview" ... It will then generate the transform, and you can copy and paste that into the normal Web.config file for debugging purposes. Just don't commit it!

    If you are using Visual Studio 2013, you can install the SlowCheetah - XML Transforms extension

提交回复
热议问题