System.Configuration.ConfigurationSettings.AppSettings 过时解决方法
.net 2.0 Vs2005
当使用ConfigurationSettings类来读取应用程序配置文件的信息时,却被警告:
警告 1 “System.Configuration.ConfigurationSettings.AppSettings”已过时:“This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings”
于是马上按照提示改变写法,结果却无法在System.Configuration里找到ConfigurationManager, 真是让人崩溃.
System.Configuration.ConfigurationSettings.AppSettings 过时解决方法
解决办法是在项目的引用中添加"System.Configuration.dll" 的引用。