471,350 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

What is file Settings.settings used for

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
Jun 27 '08 #1
1 4570
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.

--
Happy Coding!
Morten Wennevik [C# MVP]
"Tony" wrote:
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
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Namratha Shah \(Nasha\) | last post: by
6 posts views Thread by cj | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.