Accessibility Checker warnings never fail the build — how to gate them before shipping a WPF app
0 reputation · 11 Feb 2020, 19:17 UTC
0 reputation · 11 Feb 2020, 19:17 UTC
Visual Studio 2022's Accessibility Checker (Tools > Accessibility Checker) scans our WPF XAML at design time and reports issues like a missing AutomationProperties.Name as warnings in the Error List. The build succeeds regardless, so these warnings accumulate unnoticed until a manual audit finds them.
We want accessibility violations to block a release the same way analyzer errors do, but the IDE checker appears to have no documented command-line or MSBuild integration, and its coverage is limited to XAML-based WPF projects — dynamically generated UI and runtime-only defects are not scanned. We also cannot assume that zero warnings means WCAG conformance, so any gate would only cover the detectable subset.
Options under consideration: treat the Error List warnings as build-breaking via warning-as-error configuration (unclear whether the checker's diagnostics participate), or run a separate tool such as Accessibility Insights in CI alongside the IDE workflow.
A thoughtful contribution can make all the difference. Be the first to share one.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.