What is the difference between "Application Configuration File" and "Settings File" in C #?

What is the purpose of two files that seem to do the same / similar thing? Is it obsolete and should I use another? Please break me.

Thanks!

Application Configuration ImageSettings File Image

+4
source share
4 answers
+6
source

Performance.

The application can provide an interface for the user to edit / change settings that can be saved. There is no API to write to app.config and nothing needs to be reloaded if it is changed at run time. Thus, the settings were created. They provide one place to store applications and user preferences. The default values ​​for user parameters are stored in app.config, which the user can edit before starting the application; but if the application provides an interface for editing / changing certain parameters, they can be saved back to disk in the user.settings file, local to the user, allowing users to have independent and safe settings

+3
source

The first stores special applications (global), and the second stores the settings for each user.

+1
source

The application configuration file is designed to work in the working directory of the application as .exe.config. The settings file is located in the application data path to save the settings. Typically, you use a settings file for user settings that are different for each user who runs it and do not require elevated permissions to change.

+1
source

All Articles