引用UWP项目中的.NETStandard 2.0项目 [英] Reference a .NETStandard 2.0 project from UWP project
问题描述
我正在构建Xamarin应用程序,并且已经在.NETStandard 2.0类库中实现了该核心(使用Xamarin.Forms)。正确地由实现平台特定代码的iOs和Android项目引用。
I am building a Xamarin application, and I have implemented the core (using Xamarin.Forms) in a .NETStandard 2.0 class library. It is correctly referenced by an iOs and Android project which implements the platform-specific code.
问题是,我试图添加UWP项目以使我的应用程序支持UWP,当我尝试引用核心项目时,出现以下错误:
The problem is, I tried to add an UWP project in order that my app supports UWP, and when I try to reference the core project, I have the following error:
Project [核心项目]与uap10不兼容.0.10586(UAP,Version = v10.0.10586)/ win10-x86-aot。项目[核心项目]支持:netstandard2.0(.NETStandard,Version = v2.0)
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)
任何见解将不胜感激。
Any insight would be appreciated.
推荐答案
您需要同时设置 Target 和 Minimum 版本您的项目的 Windows 10 Fall Creator Update Build 16299 。
You need to set both the Target and the Minimum version to Windows 10 Fall Creator Update Build 16299 for your project.
这篇关于引用UWP项目中的.NETStandard 2.0项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!