2

I created a brand new .NETStandard project library and the target framework is the .NETStandard v2.0

I installed Entity Framework 6.2 but I'm getting the error indicating that this package may not be fully compatible with your project.

When I'm trying to update packages, I'm getting this:

Package 'EntityFramework 6.0' was restored using '.NETFramework, Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'

Are there anything I can do to solved this problem? or There is no way to use Entity Framework 6.2 (6.1.3) in a .NETStandard 2.0 project ?

I'm using VS2017

enter image description here

1 Answer 1

3

EF6 is not fully compatible with .NETStandard, so you should use EF Core in .NETStandard projects.

But if you only use that project in .NETFramework, it will work, but it may not work in other frameworks (.NETCore, Xamarin).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.