Skip to content

CA1515 breaking vs. non-breakingΒ #43159

@CaringDev

Description

@CaringDev

Type of issue

Other (describe below)

Description

The fix for "CA1515: Consider making public types internal" is documented as non-breaking. The rule states that "an application's API isn't typically referenced publicly" (emphasis mine). However, if those types are referenced, this is a breaking change. So, while the fix typically isn't breaking, I suggest to change the fix to be breaking.

Page URL

https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1515

Content source URL

https://github.com/dotnet/docs/blob/main/docs/fundamentals/code-analysis/quality-rules/ca1515.md

Document Version Independent Id

af3fc3f7-ef43-5e8d-b30f-e1ec4d737811

Article author

@CollinAlpert

Metadata

  • ID: b2d38cb7-a657-72d5-7d05-9d12e441b689
  • Service: dotnet-fundamentals

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions