Why are application settings read-only in app.config?

后端 未结 6 1037
南方客
南方客 2020-12-09 02:00

I have some settings in my app.config which I intend to be \'global\' - ie. any user can change them, and all users get the same setting.

But unless I change them to

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-09 02:19

    Why: Application settings are intended to be stored in the Application folder under Program Files where the user does not have write privileges.

    How: There is no default support for "All Users" but you should be able to setup your own custom config file in a public folder or use a Database.

提交回复
热议问题