Reputation: 63
I have tried to research what this warning code is telling me, but I still don't understand.
Severity Code Description Project File Line Suppression StateWarning NU1701 Package 'EntityFramework 6.1.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.
Upvotes: 0
Views: 169
Reputation: 89266
EntityFramework 6.1 does not support .NET Core. EntityFramework 6.3 and later do.
So bump up your EF version to version 6.4, and this warning should go away. You can also consider migrating to EF Core 3.x, but it's not a drop-in replacement for EntityFramework 6.
Upvotes: 1