Entity Framework Core Tool doesn't work from dotnet tool

Guillaume Gayot 1 Reputation point
2021-03-12T10:05:48.23+00:00

Hello ! I've encoutered an issue using EntityFrameworkCoreTool 5.0.4 : When I install the nuget package and run a scafold command from the package manager console, it works fine. But when I install it as a dotnet tool using dotnet tool install dotnet-ef --version 5.0.4 and run my scafold command from the terminal using dotnet ef Scaffold-DbContext, I get a build error : error NU1202: package Microsoft.EntityFrameworkCore.Tools 5.0.4 isn't compatible with netcoreapp2.2 (.NETCoreApp,Version=v2.2). package Microso ft.EntityFrameworkCore.Tools 5.0.4 takes : netstandard2.1 (.NETStandard,Version=v2.1) So it seems that the nugget and the dotnet tool version aren't realy the same. What can i do ? to solve this ? I want to use the dotnet CLI because I want to use another IDE than Visual Studio

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
689 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,099 questions
{count} votes