Skip to content

Failed to run benchmarks on .net 5 RC1 and Preview LangVersion #1537

Closed
@trampster

Description

@trampster

When running benchmarks from a .net 5 RC1 console project I get the following error:

// Build Error: Standard output:

Standard error:
/home/daniel/Work/JsonSrcGen/Benchmarks/bin/Release/net5.0/f332688d-f4ca-426b-95f1-b4c8df64944f/BenchmarkDotNet.Autogenerated.csproj(20,18): error MSB4086: A numeric comparison was attempted on "$(LangVersion)" that evaluates to "preview" instead of a number, in condition "'$(LangVersion)' == '' Or '$(LangVersion)' < '7.3'".

// Build Error: Standard output:

Standard error:
/home/daniel/Work/JsonSrcGen/Benchmarks/bin/Release/net5.0/f332688d-f4ca-426b-95f1-b4c8df64944f/BenchmarkDotNet.Autogenerated.csproj(20,18): error MSB4086: A numeric comparison was attempted on "$(LangVersion)" that evaluates to "preview" instead of a number, in condition "'$(LangVersion)' == '' Or '$(LangVersion)' < '7.3'".

I'm running benchmarks for a .net 5 c# source generator, this requires that the LangVersion be set to Preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions