Script-Migration' is not recognized as the name of a cmdlet,

entity-framework-core

Question

I am using EF core migration Visual Studio 2017 update 2 and latest asp.net core 1.1

My csproj

<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="1.1.2" />
<PackageReference Include="Microsoft.CSharp" Version="4.3.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.1.1" />
<PackageReference Include="System.Collections" Version="4.3.0" />
<PackageReference Include="System.Linq" Version="4.3.0" />
<PackageReference Include="System.Runtime" Version="4.3.0" />
<PackageReference Include="System.Threading" Version="4.3.0" />

I am able to run the command

Add-Migration

in my package manager console

However I am not able to run the command

Script-Migration 

as I get the error message

Script-Migration' is not recognized as the name of a cmdlet

1
2
7/27/2017 3:01:24 PM

Accepted Answer

After upgrading from Entity Framework Core 1.1. to Entity Framework Core 2.0 I can access the command.

0
8/31/2017 9:40:10 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow