简体   繁体   中英

JSON C# problem using Newtonsoft

Trying to compile a project using the Newtonsoft.Json.WindowsPhone reference and I am gettign 2 errors when building. I am compiling for windows mobile 6.0 and the latest version of Newtonsoft ver 4.0 and I don't have a reference to System.Windows available to select and System is already referenced. Any ideas on how to fix this?

 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并使用Compact版本Newtonsoft.Json.Compact.dll找到了答案。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM