Bug 47809 - Cross-platform Support for Entity Framework on UWP
Summary: Cross-platform Support for Entity Framework on UWP
Alias: None
Product: Installers
Classification: Mono
Component: General ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Rodrigo Kumpera
Depends on:
Reported: 2016-11-24 03:24 UTC by mwg@thoughts.net
Modified: 2016-11-27 21:26 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description mwg@thoughts.net 2016-11-24 03:24:12 UTC
In a very basic cross-platform solution, when trying to install EF with NuGet to UWP, the following error is generated": 

"Package EntityFramework 6.1.3 is not compatible with uap10.0 (UAP,Version=v10.0) / win10-x86-aot. Package EntityFramework 6.1.3 supports:
  - net40 (.NETFramework,Version=v4.0)
  - net45 (.NETFramework,Version=v4.5)"

EF installs to all other platforms.
Comment 1 Matt Ward 2016-11-24 09:25:14 UTC
EntityFramework 6 only supports .NET 4.0 and .NET 4.5.

EntityFramework Core supports .NET 4.5.1 and .NET Standard 1.3, which should work in a UWP application, but has not yet been released on nuget.org and is only available from myget.org.

Problems with EntityFramework Core should be reported on their github page:

Comment 2 mwg@thoughts.net 2016-11-26 13:29:19 UTC
Thanks. Question... Is the development path for Entity Framework with Cross-Platform then targeted at each platform and not the PCL?
Comment 3 Matt Ward 2016-11-27 21:26:14 UTC
The bug tracker is not really a good place for questions about EntityFramework. I would ask them on the EntityFramework site - https://github.com/aspnet/EntityFramework

Looking at the NuGet package for Microsoft.EntityFrameworkCore the assemblies either target .NET 4.5 or .NETStandard 1.3. There are no PCL assemblies. .NET Standard should work across most of the platforms, such as Android, iOS and UWP. .NET Standard libraries that target 1.3 and above cannot be used with PCL projects.