0

I'm using Visual Studio 2017, and I have a boat load of settings I'm adding. It's kind of a pain in the neck to add them by this Settings.settings table in VS. Is there a better way?

KeLorean
  • 3
  • 5
  • . NET Framework or .NET Core? (Former uses `app.config` or `web.config`, latter uses `appsettings.json` with very different APIs). – Richard Oct 23 '19 at 13:35
  • You can use ConfigurationManager to read and write to the app.config file programatically. I store my sqlite connection string using this method. – ZedLepplin Oct 23 '19 at 13:38
  • @Richard .Net Framework sorry. i should start adding this in tags. will fix. thanks. – KeLorean Oct 24 '19 at 15:11

1 Answers1

1

If you have the option of not using the default settings application behavior, or if you can use another bahavior in addition to it, perhaps it may help you:

How to create a hand-made application settings file

In this case, this may help you too:

How to initialize user app data and document path

So you can for example put this settings file in the user app data folder or anywhere you want.