I have made .net core 2.0 web app. I have added Entity Framework 6.2.0 using NUGET and then I get this error

> 
> Package 'EntityFramework 6.2.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
> 
> 
> 

How do I fix this?
['https://Stackoverflow.com/questions/48201091', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2613439/']
In my case, my project was Core 2.2. I installed (NuGet) Microsoft.EntityFrameworkCore v2.2.4 first and all built fine. Then I ACCIDENTALLY installed Microsoft.AspNet.Identity rather than Microsoft.AspNetCore.Idendity (v2.2.0). Once my eyes spotted the missing 'Core' in the .Identity package and I fixed it by uninstalling the wrong and installing the right, then the warnings went away. I expect I'm not the only one that went a little fast on the Nuget installations on a new project :)
Change your project to `.NETFramework,Version=v4.6.1` or choose an Entity Framework nuget that supports `.NETCoreApp,Version=v2.0`