Shrikey
Shrikey

Reputation: 878

Unable to read from Settings file

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 :)

Upvotes: 0

Views: 757

Answers (1)

HatSoft
HatSoft

Reputation: 11191

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

Upvotes: 1

Related Questions