'System.Configuration.ConfigurationSettings.AppSettings' is obsolete

前端 未结 12 1857
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 03:22

I got the following warning

\'System.Configuration.ConfigurationSettings.AppSettings\' is obsolete: \'\"This method is obsolete, it has been replace

12条回答
  •  失恋的感觉
    2020-12-13 04:06

    I also face same issue, sometimes the assembly reference not loaded properly or if you are using multiple projects it give problems sometimes. You just add reference to assembly. Right Click>Add Reference>.Net>System.configuration> Click OK You can see now there are many configuration options available choose ConfigurationManager.AppSetting["Con"].ToString();

    Build and Smile :)

提交回复
热议问题