Why do people consistently recommend using appConfig instead of using Settings files? (.NET)

后端 未结 7 514
谎友^
谎友^ 2021-01-30 05:30

Very often I see the answer to the question like: \"How should I store settings in my .NET app?\" is to edit the app.config file by manually adding entries to the app.config (or

7条回答
  •  故里飘歌
    2021-01-30 06:06

    I also would like to point out one difference between app.Config and Settings window. If you save anything under Settings then the settings will be saved on following locations.

    Win XP: c:\Documents and Settings\%Username%\Local Settings\Application Data{Publisher Name}\

    Win 7: C:\Users\%Username%\AppData\Local{Publisher Name}\

    While the app.config settings are saved on in the config file only.

提交回复
热议问题