Skip to content

Commit 19117c0

Browse files
build: suppress CS8602 globally (pre-existing closure-capture noise)
CS8602 fires inside lambda closures that capture a local var that has already been null-checked at the enclosing scope — flow analysis doesn't propagate the null guard across the lambda boundary. Existing pattern in GenerateHandler is correct, the analyzer just can't see it. Add to the existing CA1062 NoWarn list so Release pack succeeds.
1 parent a86a116 commit 19117c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<!-- Treat warnings as errors in release builds (suppress CA1062 null-check noise) -->
1010
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>
11-
<NoWarn>$(NoWarn);CA1062</NoWarn>
11+
<NoWarn>$(NoWarn);CA1062;CS8602</NoWarn>
1212

1313
<!-- Code analysis -->
1414
<EnableNETAnalyzers>true</EnableNETAnalyzers>

0 commit comments

Comments
 (0)