dotnet / dotnet/wpf

Fix errors generated after enabling analyzers

Open
#9,238 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.