I want to save the settings for my application in C #, so that the default settings can be easily sent with my binaries, and the end user can change them using a simple text editor (or some other simple way).It seems to me that there are several alternatives: a .config file, a .settings file or a .resx file. What are their pros and cons?
Edit1: End users are mostly computer professionals, so editing these files should not be a big problem.
Edit2: settings are something like connection strings and some other parameters (mostly disposable things). Building some kind of GUI / API to change them is actually not an option. Also, my application will not edit any of these values, so code-based saving is not required.
, Project + Properties, Settings. , . app.exe.config , EXE. Properties.Settings.Default.SettingName , . .exe.config .
: DLL , .config . app.vshost.exe.config.
.settings , IDE, ..Resx , . .
, .
.settings ( .config , .NET. .config , ).
"" MSDN : http://msdn.microsoft.com/en-us/library/aa730869(VS.80).aspx
, , app.config - . , ? ? , .
XML . , . XSD, , , . , , , , , XML n, n, [ ].
, , , app.config.
, . .INI , . . INI , , .config.
. , ClickOnce , , .
I believe that the best way is to create a graphical interface, which is certainly suitable for novice users. Given that you have already excluded this option, use the John clause (ini files).
Source: https://habr.com/ru/post/1753883/More articles:protobuf-net and rpc by tcp - c #Google maps: custom icon and layout for each marker - jqueryWhat is the recommended approach for providing custom notifications / confirmations in MVC? - jqueryWCF Data Service and Entity Framework - wcf-data-servicesCheap Android phone to develop? - androidIs it good to use the latest version of OpenSSL with Indy or not? - delphiShould we use a bug tracking system to track changing requirements? - issue-trackingBy adding a subview and then releasing it: "view change, which ends," - memory-managementC # GetType (). GetField at array position - arraysWhy can't I use '??' operand for the value of System.DBNull? - c #All Articles