Skip to content

Commit 4afbd53

Browse files
author
claudiamurialdo
committed
suppress CA1825 warning to unblock build process
1 parent eedddb5 commit 4afbd53

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dotnet/Directory.Build.props

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@
2626
<RepositoryType>git</RepositoryType>
2727
<RepositoryUrl>https://github.com/genexuslabs/dotnetClasses</RepositoryUrl>
2828
<RepositoryCommit>$(GIT_SHA)</RepositoryCommit>
29-
<NoWarn>NU5105;CS0618;CS8032;CS0618;SYSLIB0021;SYSLIB0023</NoWarn>
29+
<NoWarn>NU5105;CS0618;CS8032;CS0618;SYSLIB0021;SYSLIB0023;CA1825</NoWarn>
3030
<IsPackable>true</IsPackable>
3131
<DisableImplicitNamespaceImports>True</DisableImplicitNamespaceImports>
32+
<!--keep low and moderate vulnerabilities (NU1901;NU1902;NU1903;NU1904), high and critical vulnerabilities (NU1903 and NU1904) as warnings-->
33+
<WarningsNotAsErrors>NU1900;NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
3234
</PropertyGroup>
3335

3436
<Target Name="GetFileVersionForPackage">

dotnet/test/Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
<IsPackable>false</IsPackable>
66
<VSTestResultsDirectory>$(OutputPath)</VSTestResultsDirectory>
77
<VSTestLogger>trx</VSTestLogger>
8+
<NoWarn>CA1825</NoWarn>
9+
<WarningsNotAsErrors>NU1900;NU1901;NU1902;NU1903;NU1904;</WarningsNotAsErrors>
810
</PropertyGroup>
911
</Project>

0 commit comments

Comments
 (0)