What is file Settings.settings used for

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony

    What is file Settings.settings used for

    Hello!

    I use VS2005 and within folder properties there is a file called
    Settings.settin g.

    I can remove this file and rebuild the application without any kind of error
    or problems.

    So my question is if it's safe to remove this file ?
    The reason I ask if because I try to find out which file are nessesary for
    recreating the application from some storage media.

    //Tony


  • =?Utf-8?B?TW9ydGVuIFdlbm5ldmlrIFtDIyBNVlBd?=

    #2
    RE: What is file Settings.settin gs used for

    Hi Tony,

    The Settings.settin gs file is a wrapper around the application configuration
    settings (app.config or web.config). It allows for type safe referal to
    these settings in code typically in the format of

    Color c = Properties.Sett ings.Default.Us erColor;
    DateTime dt = Properties.Sett ings.Default.So meDate

    where UserColor and SomeDate would be stored as user or application settings
    in web.config, app.config or user.config. By using the Settings file you
    don't have to keep track of the various configuration files.

    I would not recommend deleting the file, but you can recreate it as long as
    the app.config/web.config/user.config settings are untouched.



    --
    Happy Coding!
    Morten Wennevik [C# MVP]


    "Tony" wrote:
    Hello!
    >
    I use VS2005 and within folder properties there is a file called
    Settings.settin g.
    >
    I can remove this file and rebuild the application without any kind of error
    or problems.
    >
    So my question is if it's safe to remove this file ?
    The reason I ask if because I try to find out which file are nessesary for
    recreating the application from some storage media.
    >
    //Tony
    >
    >
    >

    Comment

    Working...