In a given C # Windows Forms / WPF application, where is the custom setting usually stored?
See Using Settings in C # :
The .NET Framework 2.0 allows you to create and access values that are persisted between application execution sessions. These values are called settings. Settings can represent user preferences or valuable information an application needs to use. For example, you can create a set of settings that store user preferences for the color scheme of an application. Or, you can store a connection string that specifies the database used by your application. Settings allow you to simultaneously store information that is critical to the application outside of the code and to create profiles that store the preferences of individual users.
a source to share
The answer to your question depends on the save model for the settings:
- - settings for each user or for the whole machine?
- are specific applications to be configured or can / need / need to be used / opened by other applications?
- - are the default parameter values known at design time or are they generated during installation?
- are local settings for a specific machine or can / will roam?
Standard . Settings NET maintains local settings for each user (when the user is running as a regular user) and local settings for the entire machine (when the user starts as an administrator), both with built-in site-wide defaults and only for application use. This applies to most scenarios. There is some advanced functionality that allows .NET classes to be used Configuration
with config files in different places, which also allows you to set options available for roaming and third parties; however, there is no Visual Studio tooling support for such scenarios.
a source to share