从 UWP 项目引用 .NETStandard 2.0 项目

Reference a .NETStandard 2.0 project from UWP project

我正在构建一个 Xamarin 应用程序,我已经在 .NETStandard 2.0 class 库中实现了核心(使用 Xamarin.Forms)。它被实现平台特定代码的 iOs 和 Android 项目正确引用。

问题是,我尝试添加一个 UWP 项目以使我的应用支持 UWP,当我尝试引用核心项目时,出现以下错误:

Project [Core project] is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-x86-aot. Project [Core project] supports: netstandard2.0 (.NETStandard,Version=v2.0)

如有任何见解,我们将不胜感激。

您需要将 TargetMinimum 版本都设置为 Windows 10 Fall Creator为您的项目更新 Build 16299