dotnet / dotnet/format

IDE0051 / IDE0052 / IDE0005 issues with 7.0.302 and dotnet format --verify-no-changes

Open
#1,843 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

With the recent upgrade to 7.0.302, `dotnet format --verify-no-changes` seems to now be reporting `IDE0051` and `IDE0052` errors incorrectly in my project.

I'm using Blazor with code behind files and several `private` members are declared in the code behind file (Foo.razor.cs) but only used in the markup file (Foo.razor).

`dotnet format --verify-no-changes` also seems to be reporting errors for `IDE0005` (using unnecessary) in a razor code behind file, but the using **is** necessary.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.