c# - 使用 Newtonsoft 的 JSON C# 问题

标签 c# json compiler-errors json.net

尝试使用 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/

相关文章:

c++ - 从类型 ‘foo*&’ 的右值初始化类型 ‘foo*’ 的非常量引用无效?

objective-c - AdMob 使应用程序崩溃 xcode iPhone

javascript - 在 asp.net 中使用 javascript 函数禁用按钮

c# - 这是将 List<T> 从模型转换为 View 中的 ObservableCollection<T> 的最佳方式吗?

json - 大型 JSON 数据未显示在控制台中

javascript - ASP.NET MVC 将字符串传递给 JSON.parse,并出现引号转义问题

Javascript:总和或所有数字在for循环中不起作用

c - 错误 : case label does not reduce to an integer constant when using character data type

c# - Microsoft.Extensions.Configuration 究竟是如何依赖 ASP.NET Core 的?

c# - Mono gtk.RadioButton Clicked 事件触发两次