How to update EF Core Tools to the latest version
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
At the command line, use:
dotnet tool update --global dotnet-ef --version 3.1.0