尝试使用Newtonsoft.Json.WindowsPhone引用编译项目,构建时我遇到了gettign 2错误。我正在编译Windows Mobile 6.0和最新版本的Newtonsoft ver 4.0,我没有可供选择的System.Windows的引用,并且已经引用了System。关于如何解决这个问题的任何想法?
The type 'System.Collections.Specialized.INotifyCollectionChanged' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'
The type 'System.ComponentModel.INotifyPropertyChanged' is defined in an assembly that is not referenced. You must add a reference to assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
答案 0 :(得分:4)
好的通过下载3.5版本的Newtonsoft并使用Compact版本Newtonsoft.Json.Compact.dll来找到答案。