Where to put user-level settings in a ClickOnce app?

I'm trying to figure out where to put user-level settings for a ClickOnce-deployed app, such that they survive versioning.

Normally I could use the Settings features of VS2005, but these are stored in the config file, and when the ClickOnce app is updated, it'll be downloaded to a new location, with the default config file.

So the question arises - where is the recommended place to store user-level settings in a ClickOnce app   I know if I have Full Trust I can use the registry or whatever, but I'm hoping there's some way to use the Settings classes and all that they bring to the table.

I tried asking a microsoft rep about this (actually, two of them) at the Visual Studio Launch Tour, but neither was able to answer me at the time - anyone have any ideas



Answer this question

Where to put user-level settings in a ClickOnce app?

  • Jay Muralee

    I'm pretty sure that there is a mechanism to get user-level settings to survive upgrade if you use the Settings editor in VS.NET.

    Have you tried it I remember playing around with it a few weeks ago and I think it worked okay.

     



  • Kamran_MSFT

    If you declare a file as Data, then it will be saved even during update, so add your own config file if you do not want to use the existed one, and add it as data file, this way the configuration will be saved.
  • Where to put user-level settings in a ClickOnce app?