How to edit application configuration settings? App.config best way to go?

前端 未结 9 704
攒了一身酷
攒了一身酷 2021-01-04 05:23

For my project I have settings that I added through the Settings in the project properties.

I quickly discovered that editing the app.config file directly seems to

9条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-04 05:52

    Not sure if this is what you are after, but you can update and save the setting from the app:

    ConsoleApplication1.Properties.Settings.Default.StringSetting = "test"; ConsoleApplication1.Properties.Settings.Default.Save();

提交回复
热议问题