Commit 7004467
authored
[Mono.Android] NoWarn CA1416, CA1422 code analyzer warnings (#7591)
Context: #7590
Building our repo generates around 3400 warnings per single
.NET build, similar to:
warning CA1416: This call site is reachable on: 'Android' 21.0 and later. 'Double' is only supported on: .
warning CA1422: This call site is reachable on: 'Android' 21.0 and later. 'Double' is obsoleted on: 'Android' 33.0 and later.
Since printing each message to the console needs to be synchronized,
that means the build might be slower than necessary, since we generate
over 10k of these messages per CI build.
Disable the warnings by default. They can be enabled by setting the
`$(_EnableCodeAnalyzerPlatformWarnings)` MSBuild property to any value.
TODO: Fix #7590 so that we don't need to `$(NoWarn)` these warnings.1 parent 2a26c1e commit 7004467
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
0 commit comments