C#C
C#3y ago
uselessxp

❔ best way to store and handle Settings/Config of an app

I realized a little tool and I'd like to create a Settings/Configuration system for store some info, example I have several
string serverAddress = "127.0.0.1";
string sshUser = "admin2";
string sshPassword = "password123";
bool isSFTP = true;
...
...
...

and I'd like to put them in a .ini or whatever file, so I can edit them without having to edit the source code
I found few packages I think could works for the purpose:
Serilog.Settings.Configuration 215.4M downloads
Microsoft.Extensions.Configuration.Ini 47.6M downloads
I don't know if they are good and if there exist better stuffs
Was this page helpful?