Share via


enable-migrations enable-migrations : The term 'enable-migrations' is not recognized as the name of a cmdlet, functio n

Question

Thursday, May 19, 2016 7:11 AM | 1 vote

Hello
I have a problem.
It begin after the update 2 , worked fine before the update.

After the update 2 main problems

  1. "Diagnostic tools failed unexpectedly" every time.
    2.PM> enable-migrations
    enable-migrations : The term 'enable-migrations' is not recognized as the name of a cmdlet, functio
    n, script file, or operable program. Check the spelling of the name, or if a path was included, ver
    ify that the path is correct and try again.
    At line:1 char:1
  • enable-migrations

    + CategoryInfo          : ObjectNotFound: (enable-migrations:String) [], CommandNotFoundExcept
   ion
    + FullyQualifiedErrorId : CommandNotFoundException
  Any help will be welcomed .

Leon

All replies (1)

Friday, May 20, 2016 6:12 AM | 1 vote

Hi Leon,

Thank you for posting in MSDN forum.

For question 1:

>>"Diagnostic tools failed unexpectedly"

What kind of project you try to open or create when the message shows?

Please offer us more detailed information about it when the issue occurs.

For question 2:

>>enable-migrations : The term 'enable-migrations' is not recognized as the name of a cmdle

Please try to reinstall with the command: Install-Package EntityFramework –IncludePrerelease.

Then restart your Visual studio as administrator.

Please refer to:

http://stackoverflow.com/questions/10411529/package-manager-console-enable-migrations-commandnotfoundexception-only-in-a-spe

In addition, you mentioned that these two main problems happens after the installing the Update 2, please try to repair your VS via Control Panel to narrow down some potential problems.

Best Regards,

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

Click HERE to participate the survey.