Fix errors generated after enabling analyzers
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
### Description
After enabling analyzers for one project in WPF, we receive multiple errors which need to be fixed. Attached is the list of those errors after enabling analyzers in this PR: https://github.com/dotnet/wpf/pull/9237
[analyzererrors.txt](https://github.com/user-attachments/files/15802718/analyzererrors.txt)
### Reproduction Steps
Enable analyzers as done in PR https://github.com/dotnet/wpf/pull/9237
Build
### Expected behavior
No errors should occur. Minimize the errors/warnings.
### Actual behavior
Errors and warnings.
### Regression?
No
### Known Workarounds
Suppress and disabled analyzers
### Impact
High
### Configuration
.NET Core
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.