Using configurationmanager to read from multiple web.config files

前端 未结 2 1705
灰色年华
灰色年华 2021-01-17 19:12

Background:

I have some data thats stored in the web.config files of about 100 web applications. This data is getting moved to a database gradually.

2条回答
  •  温柔的废话
    2021-01-17 19:25

    You can add below section in your web.config

    then, add "env" folder in your project and add your environmental settings into EnvironmentalSettings.config. And you can still use ConfigurationManager to get settings from EnvironmentalSettings file.

    Does that answer your question?

提交回复
热议问题