Package Manager Console Enable-Migrations CommandNotFoundException only in a specific VS project

前端 未结 26 3001
渐次进展
渐次进展 2020-11-28 06:55

I tried to run the command \'Enable-Migrations\' in a new project and I got the message:

PM> Enable-Migrations
The term \'Enable-Migrations\' is not recog         


        
26条回答
  •  野性不改
    2020-11-28 07:27

    I had multiple projects in the solution, but I had the correct Default Project set, so I thought it should work.

    In the end, I had to add the -StartupProject MyProjectName option to the command

提交回复
热议问题