How to upgrade EF Core Tools

后端 未结 2 1234
陌清茗
陌清茗 2021-01-07 16:05

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\'. Up         


        
相关标签:
2条回答
  • 2021-01-07 16:34

    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 VERSION_NUMBER
    

    Example:

    dotnet tool update --global dotnet-ef --version 3.1.0
    
    0 讨论(0)
  • 2021-01-07 16:56

    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/

    0 讨论(0)
提交回复
热议问题