Moving Settings to another config file

后端 未结 5 1519
终归单人心
终归单人心 2020-12-15 09:51

Is it possible to move applicationSettings to another config file as it is possible with connectionStrings or appSettings?

When I create Settings for my web applica

5条回答
  •  被撕碎了的回忆
    2020-12-15 10:42

    Waaaay late for this question, but I've just been banging my head against the wall over this one. Turns out you can do this, just not for the entire applicationSettings node, you have to do each child node of the applicationSettings separately. I got the magic info from the bottom of the MSDN SectionInformation.ConfigSource article.

    app.config/web.config contents

    
        
    
    

    externalfile.config contents:

    
        
            Another setting value
        
    
    

提交回复
热议问题