Skip to content

Commit 1ab6b17

Browse files
committed
Upgrade LINQ and EF dependencies
After attempting to use IAsyncEnumerable<T> in the coverlet.core.tests project, I was met with the following error message: The type 'IAsyncEnumerable<T>' exists in both 'System.Interactive.Async, Version=3.0.3000.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263' and 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' After some research, I determined that the root cause was the dependency on an old version of LinqKit.Microsoft.EntityFrameworkCore, which, in turn, includes a dependency on an old version of Entity Framework. To solve that problem, I've upgraded the dependency on LinqKit.Microsoft.EntityFrameworkCore to the latest version in NuGet (5.0.23), as well as the dependency on Microsoft.Extensions.Logging.Abstractions, since it didn't appear to be possible to upgrade one without the other. Since it looks like Coverlet, generally, has moved on to .NET 5, this appears to be non-problematic. Afterward, all tests yielded the same result, but I was then able to begin using IAsyncEnumerable<T> normally.
1 parent 5de0ad7 commit 1ab6b17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/coverlet.core.tests/coverlet.core.tests.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030

3131
<ItemGroup>
3232
<!--For test TestInstrument_NetstandardAwareAssemblyResolver_PreserveCompilationContext-->
33-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.2.0" />
33+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" />
3434
<!--For test issue 809 https://github.com/coverlet-coverage/coverlet/issues/809-->
35-
<PackageReference Include="LinqKit.Microsoft.EntityFrameworkCore" Version="2.0.0" />
35+
<PackageReference Include="LinqKit.Microsoft.EntityFrameworkCore" Version="5.0.23" />
3636
</ItemGroup>
3737

3838
<ItemGroup>

0 commit comments

Comments
 (0)