Settings.settings File Keeps Getting Reset

后端 未结 4 663
隐瞒了意图╮
隐瞒了意图╮ 2020-12-16 03:40

When debugging my project in Visual Studio 2008, my Settings.settings file keeps getting reset between builds. Is there a way to prevent this from happening?

Thank

4条回答
  •  被撕碎了的回忆
    2020-12-16 04:07

    Off the top of my head I think you can set in the properties of the file (in Visual Studio right click, Properties) an option to "do not copy" when the project is built/run. What is happening probably is when your project is built, the settings file is copied to the debug bin directory, overwriting the settings file from the previous run.

提交回复
热议问题