How can I use Web.debug.config in the built-in visual studio debugger server?

前端 未结 7 698
花落未央
花落未央 2020-11-27 02:34

How can I merge and make use of Web.debug.config in visual studio 2010 built-in debugger?

7条回答
  •  没有蜡笔的小新
    2020-11-27 03:36

    I know this is old, but I'm facing the same problem. We have Test, Staging, Live configs that replace endpoints, connection strings etc. from the default Web.config

    However I would do the following:

    • Right click on the desired transform config (e.g. Web.Live.config)
    • Click on "Preview Transform"
    • Copy everything from right (it's how the Web.config looks with the transformation)
      • CTRL+A + CTRL+C
    • Open Web.config file (default one)
    • Select everything (CTRL+A) and paste it in (CTRL+V)
    • Run

    It's not that many steps and is done pretty quickly when you get a hang of it. Hope this helps. :)

提交回复
热议问题