I have a code which has the following line(.NET Win Form App)
label1.Text = ConfigurationSettings.AppSettings.Get("Text");
Above works fine but I get a warning that ConfigurationSettings.AppSettings is obsolete and must be replaced by System.Configuration.ConfigurationManager.Appsetting.
The problem is VS says ConfigurationManager is not a type or namespace in System.Configuration.
Im using Vs2019. I have using System.Configuration;
The interesting thing is when I click on potential fixes the only fix Vs suggests is to suppress this warning!