Enable-Migrations-CommandNotFoundException der Package Manager-Konsole nur in einem bestimmten VS-Projekt
Ich habe versucht, den Befehl 'Enable-Migrations' in einem neuen Projekt auszuführen und habe die folgende Meldung erhalten:
<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>
In allen anderen Projekten funktioniert der Befehl jedoch einwandfrei.
Warum passiert dies?
Übrigens verwende ich VS2010 Professional SP1
BEARBEITEN: Ich habe mit dem Befehl neu installiert:Install-Package EntityFramework -IncludePrerelease und das problem ging weg.