How to upgrade EF Core Tools

后端 未结 2 1256
陌清茗
陌清茗 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
    

提交回复
热议问题