'ObservableCollection' 即使使用 'System.Collections.ObjectModel' 并引用正确的程序集也找不到

'ObservableCollection' could not be found even when using 'System.Collections.ObjectModel' and referencing proper assemblies

这就像问题here and here。我的目标是 .Net 4.5

我正在使用 using System.Collections.ObjectModel; 我还参考了:

但是我无法找到 ObservableCollection。关于我可以做些什么来解决这个问题有什么想法吗?

编辑:清理并重建解决方案,仍然不行。

您需要开始使用其命名空间定义类型:

System.Collections.ObjectModel.ObservableCollection<T> collection;

这应该是有道理的。