Properties.Settings.Default.Upgrade()不起作用 [英] Properties.Settings.Default.Upgrade() not working
本文介绍了Properties.Settings.Default.Upgrade()不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用Properties.Settings.Default.Upgrade()释放新版本的应用程序时维护用户的设置,但是没有保存任何内容。
I'm trying to maintain user's settings when a new version of the application is released by using Properties.Settings.Default.Upgrade(), however nothing is being saved.
我发现旧版本的各种user.configs(1.0.1.12)并且它指定了所有用户的设置,但是当我部署1.0.1.13时,该版本的cooreponding user.config永远不会更新。
I found the various user.configs for the old version (1.0.1.12) and it has all the user's settings specified, but when I deploy 1.0.1.13 the cooresponding user.config for that version never gets updated.
推荐答案
快速更新。我制作了一个简单的WinForm应用程序,带有文本框和一个保存设置的按钮。我实现了与上面相同的代码来升级设置并且它有效。所以,现在我必须弄清楚我的更复杂的应用程序有什么不同,这使得它无法工作.....
A quick update. I made a simple WinForm app with text box and a button to save a setting. I implemented the same code as above to upgrade the settings and it worked. So, now I have to figure out what is different about my more complex app that keeps this from working.....
这篇关于Properties.Settings.Default.Upgrade()不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文