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

相关文章:

  • 2022-12-23
  • 2022-01-13
  • 2021-11-19
  • 2021-11-19
  • 2021-04-11
  • 2022-12-23
  • 2021-12-13
猜你喜欢
  • 2021-11-11
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
相关资源
相似解决方案