What is file Settings.settings used for

T

Tony

Hello!

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

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
 
M

Morten Wennevik [C# MVP]

Hi Tony,

The Settings.settings 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.Settings.Default.UserColor;
DateTime dt = Properties.Settings.Default.SomeDate

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top