-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
Description
Version Used:
Visual Studio 2026 18.4.0
Compiler version: '5.4.0-2.26124.8 (99e86a9)'. Language version: 14.0
Steps to Reproduce:
- Create a new .NET 10 console app project.
- Add the sample code from https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0360
- Notice that no IDE0360 message is shown, although the rule should be enabled by default.
- Add an .editorconfig file
- Make sure that
csharp_style_prefer_simple_property_accessors = trueis in the .editorconfig file (should be by default). - Add
dotnet_diagnostic.IDE0360.severity = warningto the .editorconfig file. - Notice that still no IDE0360 message/warning is shown,
Diagnostic Id: "IDE0360: Simplify property accessor"
Expected Behavior:
Diagnostic message/warning should be shown.
Actual Behavior:
No diagnostic message/warning is shown.
Original PR:
#79754 from @DoctorKrolic
Reactions are currently unavailable