Skip to content

ilc doesn't recognize library names prefixed with 'lib' for DirectPInvokes #118284

Closed

Description

@jtschuster

Ran into this issue when building nativeaot on Android. Many places in the repo have '`, but that isn't recognized by ilc. When statically linking libraries that aren't present on the target machine, the pinvoke fails at runtime.

Activity

  1. added this to the 10.0.0 milestone on Aug 1, 2025
  2. self-assigned this
    on Aug 1, 2025
  3. dotnet-policy-service commented on Aug 1, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
    See info in area-owners.md if you want to be subscribed.

  4. locked and limited conversation to collaborators on Sep 5, 2025
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

Relationships

None yet

Development

No branches or pull requests

Issue actions