Skip to content
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

System.EntryPointNotFoundException : Entry point was not found #1517

Closed
sungam3r opened this issue Aug 6, 2023 · 8 comments
Closed

System.EntryPointNotFoundException : Entry point was not found #1517

sungam3r opened this issue Aug 6, 2023 · 8 comments
Assignees
Labels
bug Something isn't working Solved The issue is solved and can be closed

Comments

@sungam3r
Copy link

sungam3r commented Aug 6, 2023

On net6.0 I faced with weird issue. See Xabaril/AspNetCore.Diagnostics.HealthChecks#1980 and especially Xabaril/AspNetCore.Diagnostics.HealthChecks#1980 (comment) .

I narrowed it down to --collect "XPlat Code Coverage" and opencollector package.

Steps to reproduce:

  1. Check out code from my branch in Fix Microsoft.Bcl.AsyncInterfaces issue Xabaril/AspNetCore.Diagnostics.HealthChecks#1980
  2. Run dotnet test ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj --collect "XPlat Code Coverage" -f net6.0 locally from the repo root. Test run fails.

Additional notes:

  1. No such error without --collect "XPlat Code Coverage".
  2. No such error if explicitly add <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" /> into test project.
  3. No such error on net7.0.
@daveMueller
Copy link
Collaborator

Thanks for reporting 🙏

@daveMueller daveMueller added the bug Something isn't working label Aug 7, 2023
@Bertk
Copy link
Collaborator

Bertk commented Sep 6, 2023

@daveMueller I used the latest nightly build and the problem still occurs but this will be solved with PR #1513. Nuget package System.Text.Json V7.0.3 is using Microsoft.Bcl.AsyncInterfaces V7.0.

image

@daveMueller
Copy link
Collaborator

@Bertk I just tried it out real quick with our nightly and it seems this is still an issue. Maybe you can double check when you find some time.

@Bertk
Copy link
Collaborator

Bertk commented Sep 13, 2023

@daveMueller The versions in the nuget package are correct but this will not be available in the bin folder of test project (<PrivateAssets>all</PrivateAssets>). The PackageReferenze should be added to test project test\HealthChecks.Gremlin.Tests\HealthChecks.Gremlin.Tests.csproj

  <ItemGroup>
    <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
  </ItemGroup>

and the System.EntryPointNotFoundException will vanish.

@Bertk Bertk added discussion Generic discussion on something and removed bug Something isn't working labels Sep 17, 2023
@Bertk Bertk added the waiting for customer Waiting for customer action label Oct 26, 2023
@Bertk
Copy link
Collaborator

Bertk commented Oct 26, 2023

@sungam3r Please try again with latest version from coverlet-nightly feed e.g.
<PackageVersion Include="coverlet.collector" Version="6.0.1-preview.20.g3ec85e7a33" />

@Bertk Bertk added bug Something isn't working and removed discussion Generic discussion on something waiting for customer Waiting for customer action labels Oct 28, 2023
@Bertk Bertk self-assigned this Oct 28, 2023
@Bertk
Copy link
Collaborator

Bertk commented Feb 1, 2024

related #1601

@sungam3r
Copy link
Author

sungam3r commented Feb 2, 2024

@Bertk I checked 6.0.1-preview.20.g3ec85e7a33 and see no error.

@Bertk Bertk added the Solved The issue is solved and can be closed label Feb 2, 2024
@Bertk
Copy link
Collaborator

Bertk commented Feb 20, 2024

coverlet V6.0.1 is released.

@Bertk Bertk closed this as completed Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Solved The issue is solved and can be closed
Projects
None yet
Development

No branches or pull requests

3 participants