1

還有誰從Package Manager控制檯收到此錯誤時,他/她將運行「添加 - 遷移胡說」命令實體框架7(測試版4)遷移錯誤

add-migration : 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 included, verify that the  path is correct 
and try again. 

我已經包括EntityFramework.Commands依賴(對於beta4)

新編輯: 這更像是一個建議。在運行kpm命令之前,您應該轉到程序包管理器設置並取消「api.nuget.org」。如果沒有,你會繼續得到400錯誤

+0

參考http://stackoverflow.com/questions/8678792/ef-data-migrations-does-not-work-after-close-project和http: //stackoverflow.com/questions/7567657/update-database-error-nuget-package-entityframework-sqlmigrations – coder231

+0

@Bharathi這些解決方案沒有一個可悲地工作 – MRainzo

+0

你有沒有嘗試過「k ef migration add」? http://stackoverflow.com/questions/29385736/ef7-commands-do-not-work-in-vs2015-ctp-6 –

回答