The term “Add-Migration” is not recognized

后端 未结 18 2329
情深已故
情深已故 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:18

    I had the same problem and found that it was a Visual Studio versioning problem in the Solution file.

    I was targeting:

    VisualStudioVersion = 14.0.25123.0

    But I needed to target:

    VisualStudioVersion = 14.0.25420.1

    After making that change directly to the Solution file, EF Core cmdlets started working in the Package Manager Console.

提交回复
热议问题