使用 Newtonsoft 的 JSON C# 问题

JPM*_*JPM 5 c# json compiler-errors json.net

尝试使用 Newtonsoft.Json.WindowsPhone 参考编译项目,但在构建时出现 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'.
Run Code Online (Sandbox Code Playgroud)

JPM*_*JPM 5

好的,通过下载 Newtonsoft 3.5 版本并使用紧凑版本 Newtonsoft.Json.Compact.dll 找到了答案。