Skip to content

Commit c9012c2

Browse files
authored
Fix nuget audit settings (#10663)
1 parent 255b7e5 commit c9012c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
<PropertyGroup>
2525
<!-- Nuget audit as warnings only, even in TreatWarningsAsErrors. -->
2626
<!-- Except for in CI, critical will fail the build. -->
27-
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1901;NU1902;NU1903</WarningsNotAsErrors>
28-
<WarningsNotAsErrors Condition="'$(CI)' == 'false'">$(WarningsNotAsErrors)NU1904</WarningsNotAsErrors>
29-
<WarningsAsErrors Condition="'$(CI)' == 'true'">$(WarningsAsErrors)NU1904</WarningsAsErrors>
27+
<WarningsNotAsErrors>$(WarningsNotAsErrors)NU1901;NU1902;NU1903;</WarningsNotAsErrors>
28+
<WarningsNotAsErrors Condition="'$(CI)' == 'false'">$(WarningsNotAsErrors)NU1904;</WarningsNotAsErrors>
29+
<WarningsAsErrors Condition="'$(CI)' == 'true'">$(WarningsAsErrors)NU1904;</WarningsAsErrors>
3030
<NuGetAuditLevel>moderate</NuGetAuditLevel> <!-- warn on moderate severity only. -->
3131
<NuGetAuditMode>all</NuGetAuditMode> <!-- audit transitive dependencies. -->
3232
</PropertyGroup>

0 commit comments

Comments
 (0)