How to upgrade EF Core Tools

asp.net-core entity-framework

Question

When I add-migration i got this warning:

The EF Core tools version '2.1.1-rtm-30846' is older than that of the runtime '2.1.4-rtm-31024'. Update the tools for the latest features and bug fixes.

I haven't found any information how can I update this, except with updating DotNET Core SDK, but this hasn't worked for me.

1
39
10/8/2018 12:21:21 PM

Accepted Answer

Update the tools using the package manager console:

Install-Package Microsoft.EntityFrameworkCore.Tools -Version 2.1.4

see this link https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Tools/

61
12/4/2018 6:57:52 AM

Popular Answer

If you are using a command line ( CMD, Powershell, bash etc ) you can easily type the following to update into the latest version:

dotnet tool update --global dotnet-ef

If you want to update into a very specific version do the following:

dotnet tool update --global dotnet-ef VERSION_NUMBER

Example:

dotnet tool update --global dotnet-ef --version 3.1.0


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow