Obsolete function

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I am using ConfigurationSettings.AppSettings.Get(key) in my app and I get a
warning that it is obsolete but when I use
System.Configuration.ConfigurationManager.AppSettingsGet(key) instead I get
the error 'ConfigurationManager' is not a member of 'Configuration'.

What am I missing?

Thanks

Regards
 
I am using ConfigurationSettings.AppSettings.Get(key) in my app and I
get a warning that it is obsolete but when I use
System.Configuration.ConfigurationManager.AppSettingsGet(key) instead
I get the error 'ConfigurationManager' is not a member of
'Configuration'.

You'll need to manually add a reference to System.Configuration
 
Back
Top