[{"data":1,"prerenderedAt":79},["ShallowReactive",2],{"/2025/09/13-asp.net-migration-error":3},{"id":4,"title":5,"body":6,"date":70,"description":44,"extension":71,"meta":72,"navigation":73,"path":74,"robots":75,"seo":76,"stem":77,"__hash__":78},"posts/2025/09/13 ASP.Net-migration-error.md","13 ASPNet Migration Error",{"type":7,"value":8,"toc":67},"minimark",[9,18,25,28,31,45,48,56,59],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"aspnet-migration-error","ASP.Net Migration Error",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 9/30/2016.",[26,27],"br",{},[22,29,30],{},"I did a lot of updates on my project and since I use Entity Framework Code First, I depend on migration commands. This time, my Visual Studio suddenly does not recognize the commands. I have the following error message when attempting to enable migration:",[32,33,34],"code-block",{},[35,36,41],"pre",{"className":37,"code":39,"language":40},[38],"language-text","The term 'Enable-Migrations' is not recognized as the name of a cmdlet, function, script file, or operable program\n","text",[42,43,39],"code",{"__ignoreMap":44},"",[22,46,47],{},"Some people say to reinstall entity framework with the following command:",[32,49,50],{},[35,51,54],{"className":52,"code":53,"language":40},[38],"Install-Package EntityFramework -IncludePrerelease\n",[42,55,53],{"__ignoreMap":44},[22,57,58],{},"But it didn't work for me since I have it installed, so I find a way to force reinstall the package which works! The command as follow:",[32,60,61],{},[35,62,65],{"className":63,"code":64,"language":40},[38],"Update-Package -reinstall EntityFramework -IncludePrerelease\n",[42,66,64],{"__ignoreMap":44},{"title":44,"searchDepth":68,"depth":68,"links":69},2,[],"2025-09-13T00:00:00.000Z","md",{},true,"/2025/09/13-asp.net-migration-error",null,{"title":5,"description":44},"2025/09/13 ASP.Net-migration-error","Z0M8j-UuqHXAZBGJes43CSK7eJJbwNKBDQregpiEyp4",1785167453175]