using System.Configuration显示灰色,当前上下文中不存在名称“ConfigurationManager”

问题:

在c#源代码中使用 ConfigurationManager 这个类,虽然引用了using System.Configuration这个包,但是编译时还是报错:错误 CS0103: 当前上下文中不存在名称“ConfigurationManager”

解决:

1、右键项目-> 添加 -> 引用

2、程序集 -> 勾选 “System Configuration”

3、点确定,OK了

原文地址:https://www.cnblogs.com/sagerking/p/13037495.html