首页 > 解决方案 > 如何从 .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 更改为什么目标框架?

标签: c#.netxamarinxamarin.forms.net-standard

解决方案


如果您不需要 2.1 的功能,那么可以,到 netstandard2.0 :)


推荐阅读