Skip to content

Benchmarks referencing TestAdapter fail to build with OS-specific TFMs #2501

Closed
@molesmoke

Description

@molesmoke

Attempting to use the TestAdapter with a project using an OS-specific TFM such as
<TargetFramework>net8.0-windows</TargetFramework>
gives an error when trying to run the benchmark through the test explorer:

D:\BenchmarkTest\bin\x64\Release\2cab09cb-454b-49b3-b8fb-d898d2a7f2df\BenchmarkDotNet.Autogenerated.csproj : error NU1201: Project BenchmarkTest is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Project BenchmarkTest supports: net8.0-windows7.0 (.NETCoreApp,Version=v8.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions