Why don't App.config file doesn't get overwritten when the config is saved?

后端 未结 1 720
情书的邮戳
情书的邮戳 2021-01-25 05:47

I have this code to add some settings to the App.config in a WPF application. I thought it was a simple procedure, but in the end I couldn\'t save the setting to the file. Here

相关标签:
1条回答
  • 2021-01-25 06:48

    Running the application from visual studio will create a new vshost.config every time. And so the settings are empty again.

    The code is correct and settings will also be saved in config file. Try running the .exe file from Debug/Release folder, the changes will be reflected.

    0 讨论(0)
提交回复
热议问题