Skip to content

Commit

Permalink
Enable TreatWarningsAsErrors
Browse files Browse the repository at this point in the history
Enable TreatWarningsAsErrors in Directory.Build.props.
Exception is CS8981 (lowercase type names) because it is
triggered by auto-generated protobuf types.
  • Loading branch information
webwarrior-ws committed Feb 8, 2024
1 parent c4c2eaf commit fdf1c4e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project>
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS8981</WarningsNotAsErrors>
</PropertyGroup>
</Project>

0 comments on commit fdf1c4e

Please sign in to comment.