Mac Dotnet 坑 - Donet EF

Mac Dotnet 坑 - Donet EF

环境

EnfityFramworkCore2.0.0-*

错误1

liyuanmu$ dotnet ef migrations add M
No executable found matching command “dotnet-ef”

错误2

liyuanmu$ dotnet ef migrations add M
The specified deps.json [/Users/liyuanmu/.nuget/packages/.tools/microsoft.entityframeworkcore.tools.dotnet/2.0.2/netcoreapp2.0/Microsoft.EntityFrameworkCore.Tools.DotNet.deps.json] does not exist

解决办法

sudo dotnet ef migrations add M

你可能感兴趣的:(DotnetCore)