エンティティフレームワークのデータ移行を使用しています。物物などを変更する場合は、パッケージマネージャーコンソールで「 add-migrationMyFirstMigration」を使用してみます。しかし、それは例外を返します:
The term 'add-migration' 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 inclu
ded, verify that the path is correct and try again.
At line:1 char:14
+ add-migration <<<<
+ CategoryInfo : ObjectNotFound: (add-migration:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
NugetからEntityFramework.Migrationsをアンインストールして再インストールすると、プロジェクトを閉じるまで同じコード( " add-migration MyFirstMigration "、 " update-database ")で動作します。
どうすれば修正できますか?他の誰かがこれを経験していますか?
編集:ちなみに別のPCで正常に動作します...