Skip to content

error MSB4086: A numeric comparison was attempted on "$(LangVersion)" #1564

Closed
@marek-safar

Description

@marek-safar

When having a project with settings like

  <PropertyGroup>
    <LangVersion>latest</LangVersion>
  </PropertyGroup>

BDN fails to run because of the following error

 /Users/path/Release/net5/aa4bffdc-8430-4262-ae51-d3e2e06d560b/BenchmarkDotNet.Autogenerated.csproj(20,18): error MSB4086: A numeric comparison was attempted on "$(LangVersion)" that evaluates to "latest" instead of a number, in condition "'$(LangVersion)' == '' Or '$(LangVersion)' < '7.3'".

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions