.net dynamically refresh app.config

前端 未结 10 793
闹比i
闹比i 2020-12-02 23:28

How do I dynamically reload the app.config in a .net Windows application? I need to turn logging on and off dynamically and not just based upon the value at application sta

10条回答
  •  感动是毒
    2020-12-02 23:37

    I would recommend using another XML file and not app.config. You could even watch the file for changes and automatically reload it when it changes.

提交回复
热议问题