Commit 14ba87c
Suppress CA1416 in UnitTest for intentional platform-warning tests
UnitTest deliberately calls Windows Runtime APIs annotated with [SupportedOSPlatform] for a higher Windows version than the project minimum: the 'Warning*' types exercised by TestSupportedOSPlatformWarnings exist specifically to verify those platform warnings fire, and ComInteropTests calls the DisplayInformation interop extensions (22621). Under the centralized Release warnings-as-errors these CA1416 warnings became errors. Suppress CA1416 for this test project rather than raising the minimum target platform, which would defeat the purpose of TestSupportedOSPlatformWarnings.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 593c0e8 commit 14ba87c
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
| |||
0 commit comments