Home All Groups Group Topic Archive Search About

Incrementing the Assembly Version clears the user settings

Author
15 Feb 2006 5:15 PM
Sam B
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

Author
15 Feb 2006 6:32 PM
Sam B
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





Show quote
"Sam B" <s**@sadas.com> wrote in message
news:OjvwfOlMGHA.1088@tk2msftngp13.phx.gbl...
> 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
>
>

AddThis Social Bookmark Button