Skip to content

IDE0360 analyzer is not working #82739

@cremor

Description

@cremor

Version Used:
Visual Studio 2026 18.4.0
Compiler version: '5.4.0-2.26124.8 (99e86a9)'. Language version: 14.0

Steps to Reproduce:

  1. Create a new .NET 10 console app project.
  2. Add the sample code from https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0360
  3. Notice that no IDE0360 message is shown, although the rule should be enabled by default.
  4. Add an .editorconfig file
  5. Make sure that csharp_style_prefer_simple_property_accessors = true is in the .editorconfig file (should be by default).
  6. Add dotnet_diagnostic.IDE0360.severity = warning to the .editorconfig file.
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions