Skip to content

Instrumentation failure after upgrade to .NET 7 #1432

@david-brink-talogy

Description

@david-brink-talogy

I know this particular issue is out of your hands, but after upgrading to .NET 7 a project that depends on both aspnet/mvc and swashbuckle libraries no longer generated code coverage data. The coverage was properly generated when targetting .NET 6. None of the recommended fixes worked except for explicitly copying Microsoft.Extensions.Logging.Abstractions.dll to the unit test output folder.

Simple repo in case it helps troubleshoot.
https://github.com/psiservices-dbrink/CoverletInstrumentationFailure

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions