Skip to content

Use correct native lib prefix in native AOT for android #124610

Description

@sbomer

#118299 introduced _UseNativeLibPrefix as an underscored property. Looks like android may need to set this: dotnet/android#10822.

At the time we didn't want to change the default to avoid breaking existing scenarios, but I wonder - could we try using the lib prefix by default on unix and take this breaking change? AFAIK this is a very common convention on unix so it would probably be a good default.

We could also introduce a public property to allow opting out for scenarios that don't want this.

@jtschuster @MichalStrehovsky

Activity

  1. dotnet-policy-service commented on Feb 19, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
    See info in area-owners.md if you want to be subscribed.

  2. MichalStrehovsky commented on Feb 19, 2026

    @MichalStrehovsky
    Member

    We can try. When the underscored property got added, I simply wanted it to be non-underscored so that people can set it. But we can also set the breaking default for it.

  3. added a commit that references this issue on Mar 16, 2026
    930edb9
  4. locked and limited conversation to collaborators on Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions