镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Use PublicApiAnalyzers? #7421

Closed
Closed

Description

@jonpryor

Context: https://www.nuget.org/packages/Microsoft.CodeAnalysis.PublicApiAnalyzers/3.3.4-beta1.22403.2
Context: https://github.com/dotnet/roslyn-analyzers/tree/main/src/PublicApiAnalyzers

When we build src/Mono.Android, we use the microsoft.dotnet.apicompat tooling in order to compare the just-built Mono.Android.dll against a "reference" Mono.Android.dll; see e.g. 7840225.

This prevents us from breaking API by accident, but it doesn't prevent us from adding API by accident. (Though perhaps microsoft.dotnet.apicompat can do that too?)

There is a new Microsoft.CodeAnalysis.PublicApiAnalyzers NuGet package which can also be used for API compatibility purposes, and it can also check and error against API additions. This may be useful in ensuring that we only add API when we can safely do so (new API levels).

Activity

  1. added
    Area: Mono.AndroidIssues with the Android API binding (Mono.Android.dll).
    needs-triageIssues that need to be assigned.
    on Sep 28, 2022
  2. added this to the .NET 8 milestone on Oct 3, 2022
  3. locked and limited conversation to collaborators on Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: Mono.AndroidIssues with the Android API binding (Mono.Android.dll).

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions