Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The term 'Enable-Migrations' is not recognized as the name of a cmdlet, function, script file, or operable program

When I enter this command: 'Enable-Migrations' in Package Manager Console I get this error:

"The term 'Enable-Migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a p ath was included, verify that the path is correct and try again. At line:1 char:18 + Enable-Migrations <<<< + CategoryInfo : ObjectNotFound: (Enable-Migrations:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException"

I am using VS2010 with EF 4.0 and I was just doing really simple test project for deploying web site with windows azure,but for some reason I can not enable migrations.

Anyone has any idea? Thanks

like image 465
Sandra Andonov Avatar asked Jun 26 '12 07:06

Sandra Andonov


2 Answers

Try to restart Visual Studio. It helped in my case.

like image 146
angularsen Avatar answered Oct 12 '22 23:10

angularsen


First thing you need VS2010 Professional SP1.

After that please reinstall application package with commmand Install-Package EntityFramework -IncludePrerelease and it should solve your problem.

like image 36
AvkashChauhan Avatar answered Oct 12 '22 22:10

AvkashChauhan