Skip to content

Commit 8b12f30

Browse files
committed
Changed Warnings as Errors Settings
1 parent 3e068ce commit 8b12f30

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Directory.Build.props

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@
1111
<NuGetAuditMode>direct</NuGetAuditMode>
1212
</PropertyGroup>
1313

14-
<PropertyGroup Condition="'$(CI)' == 'true'">
14+
<PropertyGroup Condition="'$(TreatWarningsAsErrors)' == ''">
1515
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1616
<WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
1717
</PropertyGroup>
1818

19+
<PropertyGroup Condition="'$(TreatWarningsAsErrors)' == 'false'">
20+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
21+
</PropertyGroup>
22+
1923
<PropertyGroup>
2024
<Product>Hot Chocolate</Product>
2125
<Authors>ChilliCream authors and contributors</Authors>

0 commit comments

Comments
 (0)