“无法将库添加到不兼容的组件"将JSON.NET添加到Xamarin项目时 [英] "Cannot add the libraries to incompatible component" when adding JSON.NET to Xamarin project

查看:120
本文介绍了“无法将库添加到不兼容的组件"将JSON.NET添加到Xamarin项目时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将JSON.NET组件添加到我的Xamarin iOS应用中时遇到此错误.

错误消息是:

在项目中添加错误:无法将库添加到不兼容的组件中

如何解决这个问题?

解决方案

由于Xamarin不支持完整的.NET框架,因此存在一个精简版的JSON.NET,它是特定的PCL( Xamarin组件站点. /p>

I got this error while adding JSON.NET component into my Xamarin iOS app.

The error message is:

error adding to project: cannot add the libraries to incompatible component

How to solve this?

解决方案

Since Xamarin doesn't support the full .NET framework, there is a slimmed down version of JSON.NET that is a specific PCL (Portable Class Library, also here on the Xamarin site) written for Xamarin.

See the Xamarin components site for the JSON.NET version for Xamarin.

这篇关于“无法将库添加到不兼容的组件"将JSON.NET添加到Xamarin项目时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆