简体   繁体   English

将系统软件包添加到Xamarin PCL项目

[英]Add System-package to Xamarin PCL project

I have multiple PCL projects and one iOS project in my solution. 我的解决方案中有多个PCL projects和一个iOS项目。 When I click 当我点击

References -> Edit

References in the iOS project, i get a list of multiple packages that i could add, including eg System.Json. iOS项目中,我获得了可以添加的多个软件包的列表,包括eg System.Json. In the PCL projects, this list doesn't contain the System-packages. PCL项目中,此列表不包含系统软件包。 Is it possible to add System-packages like System.Json to a PCL project? 是否可以将System.Json类的System-packages添加到PCL项目中?

Thanks! 谢谢!

The System... DLL:s are generally intended for a specific platform target, so No, you cannot normally add these to your PCL project. System ... DLL:s通常是针对特定平台目标的,因此,不,您通常不能将这些添加到PCL项目中。

If you are specifically looking for JSON functionality, you might want to consider using Json.NET , which is available for PCL. 如果您专门寻找JSON功能,则可能要考虑使用PCL可用的Json.NET

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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