尝试使用 Newtonsoft.Json.WindowsPhone 引用编译项目,但在构建时遇到 2 个错误。我正在为 windows mobile 6.0 和最新版本的 Newtonsoft ver 4.0 进行编译,但我没有可供选择的 System.Windows 引用,并且系统已被引用。关于如何解决此问题的任何想法?
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'.
最佳答案
好的,通过下载 3.5 版的 Newtonsoft 并使用精简版 Newtonsoft.Json.Compact.dll 找到了答案。
关于c# - 使用 Newtonsoft 的 JSON C# 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6499240/