Groups | Blog | Home
all groups > dotnet framework > february 2006 >

dotnet framework : Incrementing the Assembly Version clears the user settings


Sam B
2/15/2006 5:15:33 PM
Any idea why?

In Visual Studio 2005 when I rebuild my solution and run it, the user-scoped
settings are saved and reloaded every time.

However when I increment the build part of the Assembly version in the
application properties, rebuild and then start up, all the user-scroped
settings have been reset.

Is this meant to happen?

Thanks

Sam B
2/15/2006 6:32:48 PM
Found the fix on http://blogs.msdn.com/rprabhu/articles/433979.aspx

Add a user-scoped setting called CallUpgrade with a default of True.
' Check if we need to call upgrade on the settings.

If (My.Settings.CallUpgrade) Then

My.Settings.Upgrade()

My.Settings.CallUpgrade = False

End If





[quoted text, click to view]

AddThis Social Bookmark Button