Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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.
- Loading branch information