I need to install the Microsoft Entity Framework Core package. But I get this error message:
Error NU1202: Package Microsoft.EntityFrameworkCore 6.0.0 is not compatible with netcoreapp3.1 (.NETCoreApp, Version = v3.1). Package Microsoft.EntityFrameworkCore 6.0.0 supports: net6.0 (.NETCoreApp, Version= v6.0)
The .csproj looks like this:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
</Project>
my problem was that I use net 5 and it tried to install the latest version of entity framework so the solution was to mark the specific requested version. in package manager console I typed:
Install-Package Microsoft.EntityFrameworkCore.Tools -Version 5.0.10
and then it was successful
I faced this problem and solve it by downloading the Package Microsoft.EntityFramework with version 5.0.10
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With