A grouping attribute is declared twice

The same member has conflicting grouping declarations.

  • Error
  • BEVEL076

What it means

You can declare an attribute on a property or on a constructor parameter, but not both with different meanings. The message names the declarations that conflict. [Process] follows the same rule.

Example message

text
Data/Posts/BlogPost.cs(6,15): error BEVEL076: [GroupBy("Tags")] on 'BlogPost.Tags': member 'Tags' declares [GroupBy("Tags")] on the property and [GroupBy("Labels")] on a constructor parameter. Declare it once, or make the declarations identical. Help: https://khalidabuhakmeh.github.io/bevel/reference/diagnostics/bevel076/

How to fix

Declare the attribute once, or make the repeated declarations identical.