Skip to content

Commit ca8dc25

Browse files
committed
Treat warnings as errors on CI
1 parent 9469acd commit ca8dc25

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Directory.Build.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
5353
</PropertyGroup>
5454

55+
<PropertyGroup Condition=" '$(ContinuousIntegrationBuild)' == 'true' ">
56+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
57+
</PropertyGroup>
58+
5559
<PropertyGroup>
5660
<EmbedUntrackedSources>true</EmbedUntrackedSources>
5761
</PropertyGroup>
@@ -108,7 +112,6 @@
108112
<Import Project="$(BuildSysDir)\$(TargetFramework).props" Condition="'$(TargetFramework)' != ''" />
109113

110114
<PropertyGroup>
111-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
112115
<NoWarn>1573;1591</NoWarn>
113116
<ErrorReport>prompt</ErrorReport>
114117
<WarningLevel>4</WarningLevel>

src/dlr

Submodule dlr updated 44 files

0 commit comments

Comments
 (0)