The term “Add-Migration” is not recognized

后端 未结 18 2285
情深已故
情深已故 2020-12-07 23:51

I\'m using this MSDN Tutorial to run in VS2015 the command PM> Add-Migration MyFirstMigration -context BloggingContext that ran yesterday successfully but to

18条回答
  •  时光取名叫无心
    2020-12-08 00:35

    Just try init Microsoft.EntityFrameworkCore.Tools. In PM execute

    C:\Users\\.nuget\packages\Microsoft.EntityFrameworkCore.Tools\1.0.0-preview2-final\tools\init.ps1.
    

    It helped me with the same problem. A version of the tools might be different. It`s depended of what you use in your project.

提交回复
热议问题