未找到与命令“dotnet-ef“匹配的可执行文件

编辑csproj文件,在相应位置加入以下:

<ItemGroup>
    <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" />
</ItemGroup>
原文地址:https://www.cnblogs.com/Med1tator/p/9185520.html