You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Microsoft.Extensions.Logging;
using System;
namespace MyNamespace;
public class MyClass {
Observe that VS now shows an error line w/ rule IDE0055 due to the missing extra line between groups. Attempt dotnet build and observe the same error on build.
Removing the dotnet_separate_import_directive_groups = true from editorconfig resolves all errors in both VS and dotnet build. Alternatively, adding an extra line resolves all errors in both VS and dotnet build. So, .editorconfig and error severity are working correctly. However, there are no errors for the System using not being first.
Run Remove and Sort Usings in VS, or dotnet format. Note that the System using is moved to the top.
Diagnostic Id: IDE0055
If this is a report about a bug in an analyzer, please include the diagnostic ID and message if possible (e.g. "IDE0030: Use coalesce expression").
Expected Behavior: Expected to see a VS error and dotnet build error because System using is not first.
Actual Behavior: Usings of any order are allowed without any complains.
The text was updated successfully, but these errors were encountered:
Version Used: VS 17.12.4, .NET Core 8
Steps to Reproduce:
Directory.Build.props
.editorconfig
Sample class:
dotnet build
and observe the same error on build.Diagnostic Id: IDE0055
If this is a report about a bug in an analyzer, please include the diagnostic ID and message if possible (e.g.
"IDE0030: Use coalesce expression"
).Expected Behavior: Expected to see a VS error and dotnet build error because System using is not first.
Actual Behavior: Usings of any order are allowed without any complains.
The text was updated successfully, but these errors were encountered: