c# - 如何从 .Net 标准 2.0 添加对 .Net Core 3.1 项目的引用?
问题描述
我有两个项目,一个有一个名为 Common 的目标框架 .Net Core 3.1,另一个有一个名为 XamApp 的目标框架 .Net 标准 2.0。如何在 XamApp 中添加对 Common 的引用?我不断收到错误:
Project Common is not compatible with uap10.0.16299 (UAP,Version=v10.0.16299)/win10-arm. Project Common supports: netcoreapp3.1 (.NETCoreApp,Version=v3.1)
我正在制作 Xamarin.Forms 应用程序,因此 XamApp 仅支持 .Net Standard 2.0。我需要将 Common 更改为什么目标框架?
解决方案
如果您不需要 2.1 的功能,那么可以,到 netstandard2.0 :)
推荐阅读
- microsoft-graph-api - Microsoft Graph API 安全性
- elasticsearch - 使用浮点的弹性搜索
- google-apps-script - 如何在 Google Script Apps 中按 ID 附加数据?
- lxc - 怎么把lxc容器装满?
- ajax - 为什么使用 laravel ajax 发送到控制器时 id 给出 null
- html - Jquery var迭代后DIV显示不起作用
- python - 在数组中找到局部最小值
- scala - 如何使用 Scala 学习 REST 和 DAO?
- bash - 使用 printf 从特定字母/符号输出字符串
- python - 如何在机器上未安装 VLC 的情况下初始化 python-vlc(便携式 VLC 实例)