Skip to content

Commit 2bb38df

Browse files
bieluclaude
andcommitted
build: treat Equals without GetHashCode as an error
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5dd141d commit 2bb38df

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎Directory.Build.props‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project>
2+
<PropertyGroup>
3+
<!-- Overriding Equals or == without GetHashCode breaks hash-based collections and LINQ Distinct. -->
4+
<WarningsAsErrors>$(WarningsAsErrors);CS0659;CS0661</WarningsAsErrors>
5+
</PropertyGroup>
6+
</Project>

0 commit comments

Comments
 (0)