How do you handle multiple web.config files for multiple environments?

后端 未结 9 1171
野趣味
野趣味 2020-12-08 01:04

The way I currently handle this is by having multiple config files such as:

web.config
web.Prod.config
web.QA.config
web.Dev.config

When th

9条回答
  •  无人及你
    2020-12-08 01:18

    My favorite way to tackle this is with the configSource attribute. Admittedly I only use this on one element () but it does provide an easy way to swap in and out different segments of a web.config (which I do during install time via a WebSetup project).

提交回复
热议问题