dotnet / dotnet/format

Issue with PackageReferences in .NET Framework project

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

Description

I am running format check by running following command `dotnet-format ./MySolution.sln --fix-style warn --check -v diag`.

The solution contains a VB.NET `Winform` project which references a Nuget package using `PackageRefence`.

The inheritance is as follows: `CustomForm` (in my project) -> `BaseForm` (in NuGet project) -> `Form`

Using the following code, `dotnet-format` always reports a `BC30512` error because it does not recognise that `Me` implements `IWin32Window` through inheritance:
```vb
Using dialogForm As New SaveFileDialog
If dialogForm.ShowDialog(Me) = DialogResult.OK Then
'Do nothing
End If
End Using
```

Even if I add `dotnet_diagnostic.BC30512.severity = none` in the `.editorconfig` the output still contains the `BC30512` error code.

Probably related to #1061 and #1627

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.