Skip to content

0.15.7 throws ArgumentException analyzing code causing build to fail with AD0001 error #2864

@martincostello

Description

@martincostello

From open-telemetry/opentelemetry-dotnet-contrib#3428, the CI fails (due to treating warnings as errors) to build some of our jobs with errors such as this:

CSC : error AD0001: Analyzer 'BenchmarkDotNet.Analyzers.Attributes.ParamsAttributeAnalyzer' threw an exception of type 'System.ArgumentException' with message 'Inconsistent syntax tree features (Parameter 'trees')'. [D:\a\opentelemetry-dotnet-contrib\opentelemetry-dotnet-contrib\test\OpenTelemetry.Exporter.Geneva.Benchmarks\OpenTelemetry.Exporter.Geneva.Benchmarks.csproj::TargetFramework=net10.0]

You can reproduce the issue by:

  1. Cloning the repository at open-telemetry/opentelemetry-dotnet-contrib@3f30a36
  2. cd .\test\OpenTelemetry.Exporter.Geneva.Benchmarks\
  3. dotnet build

It's not clear from the error message which specific benchmark is causing the error.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions