问题
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