Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update EF Core Tools to the latest version

I get the following warning:

The EF Core tools version '3.0.0-preview8.19405.11' is older than that of the runtime '3.1.0'. Update the tools for the latest features and bug fixes.

Any idea what I need to run to update EF Core Tools?

like image 919
Anton Swanevelder Avatar asked Dec 18 '19 12:12

Anton Swanevelder


2 Answers

At the command line, use:

dotnet tool update --global dotnet-ef --version 3.1.0
like image 102
Erik Avatar answered Nov 13 '22 04:11

Erik


To Solve This Issue You May Follow One Of The Following Techniques:


  • Technique 1: Using Package Manager Console(Especially for Microsoft Visual Studio user)
    PM> Install-Package Microsoft.EntityFrameworkCore.Tools -Version 3.1.0

  • Technique 2: Using .NET CLI
    > dotnet add package Microsoft.EntityFrameworkCore.Tools --version 3.1.0

  • Technique 3: Using Package Reference

<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
  • Technique 4: Using Packet CLI
    > paket add Microsoft.EntityFrameworkCore.Tools --version 3.1.0

Remember: For this version to use you need NuGet 3.6 or higher.
Reference Link: https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Tools/3.1.0

like image 29
Md Wahid Avatar answered Nov 13 '22 04:11

Md Wahid