I'm doing a ASP.NET Core project.
I've installed Microsoft.EntityFrameworkCore
and Microsoft.EntityFrameworkCore.Tools
NuGet packages.
I ran Add-Migration InitialCreate
command,
Which created Migrations
folder and 20180905180349_InitialCreate.cs
file.
But it says
The type or namespace name 'Migrations' does not exist in the namespace 'Microsoft.EntityFrameworkCore' (are you missing an assembly reference?)
What is the cause of this error. Do i need to install any other package ?
<PackageReference Include="Microsoft.AspNetCore.All" />
in my .csproj file. It seems to fix the issue. But does it add unnecessary packages to my project ? – B45idotnet ef
cli tools instead docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet – agua from mars