Skip to content

Commit

Permalink
Enable TreatWarningsAsErrors
Browse files Browse the repository at this point in the history
Enable TreatWarningsAsErrors in Directory.Packages.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 36ea9c3 commit 5163997
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS8981</WarningsNotAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="StackExchange.Redis" Version="2.0.513" />
Expand Down

0 comments on commit 5163997

Please sign in to comment.