Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference a .NETStandard 2.0 project from UWP project

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.

like image 959
Toto Avatar asked Nov 23 '17 02:11

Toto


1 Answers

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

like image 186
A. Milto Avatar answered Sep 21 '22 19:09

A. Milto