How do I setup the Application Settings by code?

微笑、不失礼 提交于 2021-01-29 09:25:29

问题


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?


回答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.



来源:https://stackoverflow.com/questions/58523570/how-do-i-setup-the-application-settings-by-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!