Skip to content

Commit

Permalink
Changed Warnings as Errors Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Nov 29, 2024
1 parent 3e068ce commit 8b12f30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@
<NuGetAuditMode>direct</NuGetAuditMode>
</PropertyGroup>

<PropertyGroup Condition="'$(CI)' == 'true'">
<PropertyGroup Condition="'$(TreatWarningsAsErrors)' == ''">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
</PropertyGroup>

<PropertyGroup Condition="'$(TreatWarningsAsErrors)' == 'false'">
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup>
<Product>Hot Chocolate</Product>
<Authors>ChilliCream authors and contributors</Authors>
Expand Down

0 comments on commit 8b12f30

Please sign in to comment.