C#: Persisting User Settings After An App Upgrade

By: Justin Braun
Posted on: September 13, 2009

Seems like it should work without too much pain, but the fact of the matter is each time you increment the version on your application a new version folder will be created that is by default empty and the user.config file is empty which means the user config is lost and the user has to reconfigure the specific settings in the app.  Painful, and a bad user experience no less.

This is really simple to take care of by adding an additional setting in your application settings and modifying code in the settings.cs file.

Jim Scott covers the process here.  Happy Coding!

Related Articles

Is Your PowerShell Slow to Start?

I ran into a scenario last week where we had loaded the Compellent Storage Center Command Set for Windows PowerShell on a server.

Improper Rendering of XAML?

I’m working on a project right now and have noticed that XAML seems to be incorrectly rendered in

Soft Reset Utility for Windows Mobile 6

I reboot my T-Mobile Wing pretty regularly to make sure that I have the most memory available to me.