Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, July 10, 2017 4:34 PM
I get this error when I try to install EntityFramework through VS Package Manager Console and then I can't run the command enable-migrations. Any help is appreciated.
All replies (2)
Tuesday, July 18, 2017 10:00 AM
What is the version of you Visual Studio and NuGet? What is your nuget command line to install that package?
If this errors out, you'll need to ensure you have the Package Management folder a folder inside of your $env:PSModulePath. Here's a quick way to look through each of the folders for the Package Management folder:
$env:psmodulepath.Split(';') | foreach {gci $_ -filter '*packagemanagement*'}
If nothing comes back, you don't even have the Package Management module folder anywhere where it can be auto-imported by PowerShell.
|
Monday, July 24, 2017 9:44 AM
@MigrationUser 1, If you do not want to reinstall the Visual Studio, you can try to reinstall the NuGet Package Manager or repair Visual Studio to check if it works fine.
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].