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

后端 未结 9 1172
野趣味
野趣味 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条回答
  •  猫巷女王i
    2020-12-08 01:39

    Transforms seem really helpful for this. You can replace certain sections with different rules.

    http://msdn.microsoft.com/en-us/library/dd465318(v=vs.100).aspx

提交回复
热议问题