Skip to content

Commit c220dfd

Browse files
committed
build: enforce warnings as errors
1 parent 8907ff1 commit c220dfd

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<LangVersion>preview</LangVersion>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
8+
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
79
</PropertyGroup>
810

911
<PropertyGroup Label="Auditing">

src/libs/AutoSDK.CLI/Resources/src_Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<LangVersion>preview</LangVersion>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
8+
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
79
</PropertyGroup>
810

911
<PropertyGroup Label="Auditing">

src/libs/AutoSDK.CLI/Resources/src_libs_Directory.Build.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
<EnableNETAnalyzers>true</EnableNETAnalyzers>
5151
<AnalysisLevel>latest</AnalysisLevel>
5252
<AnalysisMode>All</AnalysisMode>
53-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
5453
</PropertyGroup>
5554

5655
<PropertyGroup Label="Trimmable" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">

0 commit comments

Comments
 (0)