Reference a .NETStandard 2.0 project from UWP project

浪尽此生 提交于 2019-12-10 12:44:59

问题


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.

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 [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.


回答1:


You need to set both the Target and the Minimum version to Windows 10 Fall Creator Update Build 16299 for your project.



来源:https://stackoverflow.com/questions/47446699/reference-a-netstandard-2-0-project-from-uwp-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!