【发布时间】:2018-08-19 14:50:28
【问题描述】:
我有以下错误:
它只发生在android上,在ios上一切都很好。
仅当我以 xamarin 形式将 pcl 引用到我的 pcl 时,才会出现该错误。
我的 PCL:
我读到了:
https://mallibone.com/post/using-pcl-only-libraries-with-net-standard https://montemagno.com/installing-a-pcl-into-netstandard-libraries/
【问题讨论】:
-
为什么要尝试使用 2 PCL?仅使用 .net 标准 2.0 之一。
-
我需要在非 .net 标准 2.0 的不同项目之间共享代码。只有一个类,在我的 pcl 中我没有安装任何 Nuget
-
您不能在您的 android 应用上使用 .net framework 4.7.1。您必须在此处查看.NET Standard implementation support 以确保 android 应用符合要求。
-
复制旧代码到.net std 2.0项目
标签: .net xamarin xamarin.forms xamarin.android .net-standard