Skip to content

Commit ae02abe

Browse files
committed
Added TreatWarningsAsErrors on release builds
1 parent 73371e4 commit ae02abe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Egil.RazorComponents.Testing.Library.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ This library's goal is to make it easy to write comprehensive, stable unit tests
3434
<IncludeSymbols>true</IncludeSymbols>
3535
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
3636
</PropertyGroup>
37+
38+
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
39+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
40+
</PropertyGroup>
3741

3842
<ItemGroup>
3943
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />

0 commit comments

Comments
 (0)