【问题标题】:JSON C# problem using Newtonsoft使用 Newtonsoft 的 JSON C# 问题
【发布时间】:2011-06-27 21:37:52
【问题描述】:

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

【问题讨论】:

    标签: c# json compiler-errors json.net


    【解决方案1】:

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

    【讨论】:

    • WindowsPhone dll 仅适用于 Windows Phone 7 及更高版本。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-06-16
    • 2020-09-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-21
    相关资源
    最近更新 更多