Using VS for Mac, adding the following lines to .csproj does the migration job for me:
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.1.1" /> <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0-msbuild2-final" />
Packages will be automatically restored, saving .csproj from VS.
To run the "dotnet ef" command through the terminal, you must be in the project directory, I do not mean from the directory where the .sln file is located, but from a lower level.
Note. The same trick with v1.0.1 Tools.DotNet does not work, I do not know why.
source share