Nested app.config (web.config) files

前端 未结 2 449
别那么骄傲
别那么骄傲 2021-01-18 00:27

Is it possible to have two app.config files where one app.config serves as a container for second (nested) app.config file? I would like to reference specific sections of a

2条回答
  •  不思量自难忘°
    2021-01-18 01:11

    You can reference other config files yes, so you can have static stuff in one file, and machine specific stuff in another.

    Eg, to put app settings in a seperate file, in a subfolder called "configuration":

    
    

    Then in the AppSettings.config, just include the appSettings tag as normal:

    
       
    
    

提交回复
热议问题