Skip to content

Commit ca584a4

Browse files
authored
Merge pull request #19 from tgharold/treat-warnings-as-errors-1
Treat all compile warnings as errors
2 parents c634119 + 579b1ad commit ca584a4

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

examples/OptionsPatternMvc.Example/OptionsPatternMvc.Example.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
<TargetFramework>netcoreapp3.1</TargetFramework>
55
</PropertyGroup>
66

7+
<PropertyGroup>
8+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
9+
</PropertyGroup>
10+
711
<ItemGroup>
812
<ProjectReference Include="..\..\src\RecursiveDataAnnotationsValidation\RecursiveDataAnnotationsValidation.csproj" />
913
</ItemGroup>
1014

11-
1215
</Project>

src/RecursiveDataAnnotationsValidation/RecursiveDataAnnotationsValidation.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<PackageTags>dataannotation validation validator</PackageTags>
1010
</PropertyGroup>
1111

12+
<PropertyGroup>
13+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
14+
</PropertyGroup>
15+
1216
<ItemGroup>
1317
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
1418
</ItemGroup>

test/RecursiveDataAnnotationsValidation.Tests/RecursiveDataAnnotationsValidation.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

9+
<PropertyGroup>
10+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
11+
</PropertyGroup>
12+
913
<ItemGroup>
1014
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
1115
<PackageReference Include="xunit" Version="2.4.0" />

0 commit comments

Comments
 (0)