TypeLoadException error (DependencyInjection) with latest EFCore
See original GitHub issueHi,
I noticed that if I upgrade my EF Core libraries to latest (6.0.10), I get an error with coverlet:
Data collector 'XPlat code coverage' message: [coverlet]System.TypeLoadException: Could not load type 'Microsoft.Extensions.DependencyInjection.ServiceCollection' from assembly 'Microsoft.Extensions.DependencyInjection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at Coverlet.Collector.DataCollection.CoverletCoverageCollector.GetDefaultServiceCollection(TestPlatformEqtTrace eqtTrace, TestPlatformLogger logger, String testModule)
at Coverlet.Collector.DataCollection.CoverletCoverageCollector.OnSessionStart(Object sender, SessionStartEventArgs sessionStartEventArgs) in /_/src/coverlet.collector/DataCollection/CoverletCoverageCollector.cs:line 132.
I’m trying to upgrade Microsoft.EntityFrameworkCore from 6.0.9 to 6.0.10. My project is latest .NET 6.
Is this happening to anyone else? Is there a fix?
Issue Analytics
- State:
- Created a year ago
- Reactions:13
- Comments:27
Top Results From Across the Web
Type Load Exception in EF Core Project
I get this error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. System.
Read more >ASP.NET Core 3.1.0 site won't run - Could not load ...
The solution would be to downgrade the Microsoft.AspNetCore.Identity nuget package to 3.1.0 instead of 3.1.1 then the error should go away. Good ...
Read more >Problems about upgrade .net5 to .net6 RC
I have a site only for the reading database from MySQL. Now I am about to upgrade it from .net 5 to .net6...
Read more >Asp.net-core – System.TypeLoadException Could not load ...
Extensions.DependencyInjection.ServiceCollectionExtensions'. asp.net-coreasp.net-core-mvc. I am getting this error: Error when call "services.
Read more >Could not load type 'Microsoft.AspNetCore.Mvc.Internal. ...
Creating the new project in Visual Studio 2019 using Asp.net Core 3.1.....I am facing this issue Some services are not able to be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
3.2.0 released
By the end of the week I should be able to release a minor release