0

I created a console application and added a Settings1.settings file through the Add -> New Item -> Settings file. When I try to access Properties.Settings intellisense is not recognising Properties.

But when I try to add a settings file through Properties -> Settings -> Create settings file, Properties is shown by intellisense..

Also, manually created settings file appears in my Solution Explorer, but the one created through Properties -> Settings -> Create settings file appear in a separate path "Properties -> Settings".

What is the difference between both ???

Thanks in advance :)

Shrikey
  • 858
  • 3
  • 11
  • 34

1 Answers1

1

Settings lives under the Properties namespace as child hence you get the intellisense working correctly

In Settings you can create type variables for scope such as user or application

A huge example will be that I can save my applications settings in one the variables

HatSoft
  • 11,077
  • 3
  • 28
  • 43
  • Thanks HatSoft :) But what if I want to access the values of settings file that are added not in Properties folder ?? Is the only way to access them is through configurationManager.appsettings ( assuming that I gave all the values as application scoped ) ?? – Shrikey Jul 10 '12 at 10:58