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/']
Alternatively you can change your target framework to net461 as below.

```
<TargetFramework>net461</TargetFramework>

```

By changing your target framework to net461 makes you available to use .net core and full .net frameworks. I think that for this period of time, this approach is better. Because EF Core still hasn't got some main features like [many to many relationship](https://learn.microsoft.com/en-us/ef/core/modeling/relationships) and some others. Sure it depends on your needs and expectations from an ORM tool.
I had the same problem, and was introduced by altering my solution to use a new TargetFramework. 

```
<TargetFramework>netcoreapp2.2</TargetFramework>

```

After the Update I tried to add the Identity Framework but failed with a warning as described.

By Adding the packages in this sequence solved it for me:

```
Microsoft.EntityFrameworkCore
Microsoft.AspNetCore.Identity

```