-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Could not load type IDbContextOptionsExtensionWithDebugInfo from EntityFrameworkCore #17917
Comments
@TomasHubelbauer You need to keep all dependencies at the same version, including |
Ah, I didn't realize |
Another thing which doesn't help is that for my version of EF ( |
I think you are referring to the ASP .NET Core version. Yes, unfortunately the build portion don't match EF for pre-release packages |
Indeed, I misread the package name. At least it's documented in this issue now for Google. FWIW I was able to get the above to work with in-memory once I switched that package to the RC1 version as well. |
I think I am able to reproduce closed #15192 in RC1.
dotnet --version
: 3.0.100-rc1-014190What I did:
dotnet new mvc --auth Individual
dotnet run
and accept the self-signed certificate in thebrowser at https://localhost:5001
app.db
andConnectionStrings
inappSettings.json
dotnet add package Microsoft.EntityFrameworkCore.InMemory
AddDbContext
withservices.AddDbContext<ApplicationDbContext>(options => options.UseInMemoryDatabase(nameof(aws_elastic_beanstalk)))
You can see the problem in this repo:
https://github.com/TomasHubelbauer/aws-elastic-beanstalk
Further technical details
EF Core version: 3.0.0-rc1.19457.4
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer) in memory
Target framework: (e.g. .NET Core 3.0) .NET Core 3.0.100-rc1-014190
Operating system: Windows 10
IDE: (e.g. Visual Studio 2019 16.3) CLI
The text was updated successfully, but these errors were encountered: