Skip to content

Commit

Permalink
missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
nguerrera committed Nov 18, 2024
1 parent 7764629 commit 90c94b6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/build.warnings_as_errors.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
NOTE: We only turn on warnings-as-errors in Release because it hurts
iteration time in the IDE to error out while the code is still
work-in-progress.
-->
<PropertyGroup Label="WarningsAsErrors" Condition="'$(Configuration)' == 'Release'">
<!-- Treat compiler warnings as errors. -->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

<!-- Treat all build warnings as errors -->
<MSBuildTreatWarningsAsErrors>$(TreatWarningsAsErrors)</MSBuildTreatWarningsAsErrors>

<!--
NU190X are security vulnerability warnings and can trigger without code
changes. Don't let them break the build.
-->
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
<MSBuildWarningsNotAsErrors>$(WarningsNotAsErrors)</MSBuildWarningsNotAsErrors>

<!--
We are not yet clean on new analysis introduced with .NET 9 SDK so lower
the analysis level when treating warnings as errors in Release.
-->
<AnalysisLevel>8</AnalysisLevel>
</PropertyGroup>
</Project>

0 comments on commit 90c94b6

Please sign in to comment.