-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EF6.3 Add-Migration is not recognized as the name of a cmdlet #1337
Comments
Weird. What's the output of |
I can't seem to reproduce this problem. I have a solution with one ASP.Net MVC 5 web app and a couple of libraries. All used EF6.2, upgrade to 6.3 went fine. I've even added migrations afterward as well. The only difference I can see is VS version. Mine is |
This might be related to #1348 |
Same thing for me, after upgrading to Error:
Tried this workaround from here More details:
"Solved" by:
After that the |
Got this some days ago! Manually applying the change in #1300 seems to fix it. Downgrading to 6.2 is not an option for me. |
@ajcvickers I also have this issue on my 2012 R2 server machine ( No exported commands ).
I cannot determine which issue this is a duplicate of. I have also tried the fix in 6.4. |
Modifying ..\tools\entityframework6.psm1 with:
Is the only fix that worked for me. |
Re-opening. We should consider just adding the functions back to our |
@bricelam And danger in doing this for 6.4? If not, I say let's do it. |
No danger. I removed them because they are redundant in newer versions of PowerShell. |
Upon installing EF6.3 (to get this fix; thanks for that fix!), I tried to add a migration. I instantly ran into this error:
Steps to reproduce
I typed in
Add-Migration
(or any EF migration command) into the Package Manager Console.This is using the Package Manager Console after upgrading to 6.3 from 6.2. In my attempt to fix the issue, I:
Update-Package EntityFramework -reinstall
command.Personal Fix
I ended up fixing the issue by changing a line in
EntityFramework6.psm1
:I modified:
and changed it to (based off of 6.2's version):
I don't know if the above fix I applied is recommended, but I discovered modifying that line is the only thing I tried that fixed this issue. After applying this change, I could call Add-Migration on my project without issue.
Further technical details
EF version: 6.3.0
Database Provider: (e.g. EntityFramework.SqlServer)
Operating system: Windows 8.1 Pro
IDE: Visual Studio Community 2017 Version 15.6.16 (also was on 15.6.9 before)
The text was updated successfully, but these errors were encountered: