1

I have used EF CORE 2.2.6 in a .net framework 4.8 WPF project yet.

And now the EF CORE 3.0 has published.

While I update the NuGet package, it reports this error:

enter image description here

As the error said, it seems the EF CORE 3.0 does not compatible with the .net framework yet.

I tried to find the EF CORE 3.0 publish announcement, but can not find any about does not support .net framework anymore.

How can I solve it? Do I have to migrate all the project to .net core 3.0 to solve this problem? Thank you.

102425074
  • 781
  • 1
  • 7
  • 23

2 Answers2

3

EF Core 3.0 is based on .NET Standard 2.1 while .NET Framework 4.8 does not have .NET Standard 2.1 support. So you can not use EF Core 3.0 in .NET Framework 4.8.

So solution is either stick to EF Core 2.2 or migrate all the project to .NET Core 3.0.

For more details: Support .Net Framework (4.8?) for netstandard 2.1 and EF Core 3.0 targets .NET Standard 2.1

TanvirArjel
  • 30,049
  • 14
  • 78
  • 114
2

FYI: EF Core 3.1 now targets .NET Standard 2.0 again. This brings back support for .NET Framework.