“AppSettings 已过时”的解决方法

“System.Configuration.ConfigurationSettings.AppSettings”已过时

在VB.NET里面使用配置文件,出现警告
“System.Configuration.ConfigurationSettings.AppSettings” 已过时

然后添加引用imports System.Configuration
将System.Configuration.ConfigurationSettings.AppSettings修改为System.Configuration.ConfigurationManager.AppSettings

出现错误
错误    1    命名空间“System.Configuration”中不存在类型或命名空间名称“ConfigurationManager”(是缺少程序集引用吗)
要在项目中引用System.Configuration.dll才行

posted on 2009-03-08 18:23  意扬  阅读(498)  评论(0编辑  收藏  举报

导航