“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才行