© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
203 replies
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;
...
...
...
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
Serilog.Settings.Configuration
215.4M downloads
Microsoft.Extensions.Configuration.Ini
Microsoft.Extensions.Configuration.Ini
47.6M downloads
I don't know if they are good and if there exist better stuffs
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Best Way to store data for an Discord Bot
C#CC# / help
3y ago
The best place to handle domain exceptions in an MVC app?
C#CC# / help
3y ago
App to Google App Store
C#CC# / help
2y ago