我有一个Xamarin形式的项目,我正在使用Sqlite数据库,现在我想将此Sqlite转换为Microsoft.EntityFrameworkCore.Sqlite
但是我发现了此异常。
Severity Code Description Project File Line Suppression
State
Error Could not install package 'Microsoft.EntityFrameworkCore.Sqlite 3.0.0-preview6.19304.10'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
我的项目中有 3 个面向 .NET 框架工作 4.5 的项目,但Microsoft.EntityFrameworkCore.Sqlite
需要 .NET Standered 2.0 .我坚持了下来。
需要将 PCL 项目转换为 .Net Standard 项目才能使用实体框架核心。