当使用ConfigurationSettings类来读取应用程序配置文件的信息时,却被警告:


于是马上按照提示改变写法,结果却无法在System.Configuration里找到ConfigurationManager, 真是让人崩溃.
System.Configuration.ConfigurationSettings.AppSettings 过时解决方法
解决办法是在项目的引用中添加"System.Configuration.dll" 的引用。
当使用ConfigurationSettings类来读取应用程序配置文件的信息时,却被警告:
于是马上按照提示改变写法,结果却无法在System.Configuration里找到ConfigurationManager, 真是让人崩溃.
System.Configuration.ConfigurationSettings.AppSettings 过时解决方法
解决办法是在项目的引用中添加"System.Configuration.dll" 的引用。
转载于:https://www.cnblogs.com/hooyes/archive/2008/05/15/hooyes_ConfigurationManager.html