Skip to content

[Enhancement] Add net9.0 and net10.0 targets #1822

Description

@martincostello

coverlet NuGet packages (coverlet.collector, coverlet.msbuild, coverlet.console, coverlet.MTP)
currently ship only a net8.0 TFM asset folder (driven by $(NetMinimum) = net8.0).
When a user's machine has only the .NET 9 or .NET 10 SDK installed the tracker class injected
at instrumentation time cannot load System.Runtime 8.0.0.0, causing a TypeInitializationException
at test-run time (see #1818).

Adding net9.0 and net10.0 TFM asset folders to each package allows the runtime assembly
resolver to pick the TFM-appropriate copy automatically.

Strategy

Variable Current After
NetMinimum net8.0 net8.0 (unchanged)
NetCurrent net9.0 net10.0 (promoted)
net9.0 packages + CI CI integration-test only
LangVersion 12.0 latest

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SolvedThe issue is solved and can be closedbreaking-changeIssue or PR that represents a breaking change in features or functional.enhancementGeneral enhancement request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions