ConfigurationManager的名称空间在哪里? [英] Where is ConfigurationManager's namespace?

查看:270
本文介绍了ConfigurationManager的名称空间在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经引用了 System.Configuration -并发现 ConfigurationSettings 没问题-但是类型或找不到命名空间' ConfigurationManager '!?

I've got a reference to System.Configuration - and ConfigurationSettings is found no problem - but the type or namespace 'ConfigurationManager' could not be found!?

我已阅读-看起来像应该与 ConfigurationSettings 类属于同一名称空间。

I've read around - and it looks like it should belong to the same namespace as the ConfigurationSettings class.

编辑:请注意-我ve明确表示我已经添加了对System.Configuration的引用。已有4条评论。

Please take note - I've clearly said I have added a reference to System.Configuration. There's been 4 comments already about this.

推荐答案

.NET 2.0之后,ConfigurationManager是System.Configuration的一部分。添加对System.Configuration dll的引用。尝试使用System.Configuration.ConfigurationManager。

ConfigurationManager is a part of the System.Configuration after .Net 2.0. Add a reference to the System.Configuration dll. Try using System.Configuration.ConfigurationManager.

这篇关于ConfigurationManager的名称空间在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆