在VS2005 C#项目中,我添加了对System.configuration的引用.在对象浏览器中,我可以看到System.Configuration.ConfigurationManager.在Intellisense System.Configuration中只有旧的ConfigurationSettings,而不是ConfigurationManager.
我的代码System.Configuration.ConfigurationManager.AppSettings ["MySetting"]
突出显示为语法错误,不编译.
在一个不同的项目中,完全相同的设置工作正常...任何线索关于发生了什么?