【发布时间】:2010-10-25 12:08:21
【问题描述】:
在 VS2005 C# 项目中,我添加了对 System.configuration 的引用。 在对象浏览器中,我可以看到 System.Configuration.ConfigurationManager。 在 Intellisense System.Configuration 中只有旧的 ConfigurationSettings,没有 ConfigurationManager。
我的代码 System.Configuration.ConfigurationManager.AppSettings["MySetting"]
高亮显示为语法错误且无法编译。
在不同的项目中,完全相同的设置也可以正常工作...关于发生了什么的任何线索?
【问题讨论】:
-
你的目标是什么版本的框架?