-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Migrations: Support x64 assemblies in package manager console commands #1074
Comments
Are there any plans when the Entity Framework Commands (Add-Migration, etc.) will be available for x64 Assemblies as well? We are deprecating 32bit builds and it is not nice being forced to continue with 32bit support just because tools don't support 64 bit. |
Yes |
We ditched app domains for processes in #6288. This Just Works� now. |
@bricelam, I am executing add-migration in x64 (on EF 6.2 and .NET 4.7). It fails with BadImageFormatException. I think that is expected (because it's EF 6.2) ?! |
Yes, EF6 executes inside the VS process which is 32-bit. EF Core executes out-of-process which enabled us to support 64-bit. |
You may be able to make it work by building as AnyCPU (without Prefer 32-bit) |
@bricelam Thanks for the confirmation. So, can I upgrade to EF core while still being on .NET 4.7 ? Is that possible? |
Yes, EF Core works on any .NET Standard 2.0 compatible framework including .NET Framework 4.6.1+ |
This is a sub-issue of #1058.
One idea I had was to try and use a compatible platform (x86 or AnyCPU) if present, and give a nice error message if one isn't available.
The text was updated successfully, but these errors were encountered: