windows-8 - Window 8 应用程序编译时错误在模块 System.dll 中找不到类型 System.ComponentModel.PropertyDescriptor

标签 windows-8 json.net

我正在为 Windows 8 构建一个非常基本的应用程序。很遗憾,我收到以下错误消息。

Cannot find type System.ComponentModel.PropertyDescriptor in module System.dll.

这是一条编译时错误信息。 有人可以解释为什么会这样吗?

注意。我在这个应用程序中使用 Newtonsoft 进行 json 解析

最佳答案

我遇到了同样的问题,看来 Newtonsoft 使用的 PropertyDescriptor 对象当前不支持 Windows 8/Windows Phone 应用程序。当我从我的项目中删除 Newtonsoft dll 时,我能够成功构建(当然,无论您使用 Newtonsoft 做什么,您都必须找到解决方法)

关于windows-8 - Window 8 应用程序编译时错误在模块 System.dll 中找不到类型 System.ComponentModel.PropertyDescriptor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17501232/

相关文章:

c# - C#异步-暂停多个任务,直到完成一个任务

c# - 使用C#打开PDF——Windows 8 Store应用程序

windows-8 - Windows 8 支持 Visual Source Safe 吗?

c# - 非根对象的 JSON 反序列化

powershell - 来自 Powershell 的 MessageDialog

ruby - 在 Windows 8 : Unable to execute file C:\Program Files(x86)\Heroku\ruby-1. 9.3\bin\gem.bat 上安装 heroku toolbelt 时出错

c# - 如何将 jqGrid 与 C#/ASP.NET 和 JSON.NET(没有 AJAX.NET 的东西)一起使用?

c# - Json.Net 未正确序列化版本类型

c# - 使用 JsonConverter 反序列化 JSON 字典值

c# - JSON 对象在使用 JsonResult 返回时被序列化为空括号