.NET ConfigurationManager类正确引用方法

来源:互联网 发布:咋用密码登录mysql 编辑:程序博客网 时间:2024/06/05 19:23
  在.NET源代码中使用 ConfigurationManager 这个类,虽然引用了using System.Configuration这个包,但是编译时还是报错:错误 CS0103: 当前上下文中不存在名称“ConfigurationManager”。


      解决办法是除了在源代码中引用了using System.Configuration,还需在解决方案资源管理器里的“引用”中添加“System.Configuration”。 图片
0 0
原创粉丝点击