我有一个对 System.Configuration
的引用 - 并且 ConfigurationSettings
没有问题 - 但类型或命名空间“ConfigurationManager
”找不到!?
我已经阅读过 - 看起来它应该属于与 ConfigurationSettings
类相同的命名空间。
编辑:请注意 - 我已经明确表示我已添加对 System.Configuration 的引用。已有 4 条评论。
最佳答案
ConfigurationManager是.Net 2.0之后System.Configuration的一部分。添加对 System.Configuration dll 的引用。尝试使用 System.Configuration.ConfigurationManager。
关于c# - ConfigurationManager 的命名空间在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12727721/