2013-06-28 6 views
13

を認識していない私は私の新しいMVC 4アプリケーション PM>有効-移行-EnableAutomaticMigrations用語「有効-移行が」MVCコード最初

で初めて実行しようとしている私がgetingよ:

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, verify that the path is correct and try again. 
At line:1 char:1 
+ Enable-Migrations –EnableAutomaticMigrations 

私は何が欠けていますか?私はe.fをインストールしました。5.

+1

エンティティフレームワークをインストールしましたか?また、http://stackoverflow.com/q/11202718/1341477とhttp://stackoverflow.com/q/10411529/1341477とhttp://nuget.codeplex.com/workitem/2649 –

+0

申し訳ありません、私の質問を編集、私は5のmvc 5を意味しませんでした!あなたの質問に答えてはい... – Simon

+0

あなたはデータベースの移行をしたいですか? –

答えて

0

私はフレームワーク(5.x)をインストールして、管理モードで実行した後に同じコマンドを実行しました。これは問題を解決しました - しかし、かなり奇妙です。パッケージマネージャコンソールで

14

てみタイピング:

Install-Package EntityFramework -IncludePrerelease 

、その後は、Visual Studioを再起動します。

+3

thrickを再起動しました! –

0

プロジェクトのパスのディレクトリにあります。明らかにVS 2013は大括弧で囲まれたプロジェクトフォルダに満足していません。

関連する問題