Konsola menedżera pakietów Włączanie-migrowanie Wyjątek CommandNotFoundException tylko w określonym projekcie VS
Próbowałem uruchomić polecenie „Enable-Migrations” w nowym projekcie i otrzymałem wiadomość:
<code>PM> Enable-Migrations 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 path was included, verif y that the path is correct and try again. At line:1 char:18 + Enable-Migrations <<<< + CategoryInfo : ObjectNotFound: (Enable-Migrations:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException </code>
Ale we wszystkich innych projektach polecenie działa dobrze.
Dlaczego to się dzieje?
BTW, używam VS2010 Professional SP1
EDYTOWAĆ: Ponownie zainstalowałem komendę:Install-Package EntityFramework -IncludePrerelease i problem zniknął.