The term “Add-Migration” is not recognized

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

    These are the steps I followed and it solved the problem

    1)Upgraded my Power shell from version 2 to 3

    2)Closed the PM Console

    3)Restarted Visual Studio

    4)Ran the below command in PM Console dotnet restore

    5)Add-Migration InitialMigration

    It worked !!!

提交回复
热议问题