Skip to content

Fix NativeAOT compatibility for assembly location and PtrToStructure#424

Open
mfkl wants to merge 1 commit intovideolan:3.xfrom
mfkl:aot-support
Open

Fix NativeAOT compatibility for assembly location and PtrToStructure#424
mfkl wants to merge 1 commit intovideolan:3.xfrom
mfkl:aot-support

Conversation

@mfkl
Copy link
Copy Markdown
Member

@mfkl mfkl commented Apr 13, 2026

No description provided.

Use AppContext.BaseDirectory instead of Assembly.Location on
NET6_0_OR_GREATER to avoid IL3000 in AOT/single-file deployments.
Add DynamicallyAccessedMembers annotation to PtrToStructure<T> so
the trimmer preserves struct constructors needed by Marshal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant