Entityframework.docs: EF Core 3.x installation doesn't work

Created on 26 Nov 2019  Â·  2Comments  Â·  Source: dotnet/EntityFramework.Docs

the very first step, dotnet tool install --global dotnet-ef, fails with

error NU1202: Package dotnet-ef 3.0.1 is not compatible with netcoreapp3.0 (.NETCoreApp,Version=v3.0) / any. Package dotnet-ef 3.0.1 supports: netcoreapp2.1 (.NETCoreApp,Version=v2.1)
The tool package could not be restored.

If the tool requires .NET Core 2.1, it should be documented.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

closed-product-issue

Most helpful comment

As a workaround downgrade your project from 3.0.1 EF Core packages to 3.0.0. Then install the EF 3.0.0 tools from the CLI if youdidn't already do it from the package manager. Then restart your project. This is the only thing that has worked for me so far. Good luck.

All 2 comments

It is a bug in the product as tracked at https://github.com/aspnet/EntityFrameworkCore/issues/18977

As a workaround downgrade your project from 3.0.1 EF Core packages to 3.0.0. Then install the EF 3.0.0 tools from the CLI if youdidn't already do it from the package manager. Then restart your project. This is the only thing that has worked for me so far. Good luck.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joakimriedel picture joakimriedel  Â·  3Comments

divega picture divega  Â·  4Comments

norvegec picture norvegec  Â·  3Comments

ajcvickers picture ajcvickers  Â·  4Comments

weitzhandler picture weitzhandler  Â·  4Comments