From a53e3c1a3786d46e29837ce4577eaee50e7c17e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Thu, 1 Feb 2024 08:53:23 +0100 Subject: [PATCH 1/2] Add note on what methods are exported --- docs/core/deploying/native-aot/interop.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/core/deploying/native-aot/interop.md b/docs/core/deploying/native-aot/interop.md index f0f3b3f2ef4d9..a02895707e6d8 100644 --- a/docs/core/deploying/native-aot/interop.md +++ b/docs/core/deploying/native-aot/interop.md @@ -79,4 +79,5 @@ Examples: The Native AOT compiler exports methods annotated with with a nonempty `EntryPoint` property as public C entry points. This makes it possible to either dynamically or statically link the AOT compiled modules into external -programs. For more information, see [NativeLibrary sample](https://github.com/dotnet/samples/tree/main/core/nativeaot/NativeLibrary/README.md). +programs. Only methods marked `UnmanagedCallersOnly` in the published assembly are considered: methods in project references or NuGet packages will not be exported. +For more information, see [NativeLibrary sample](https://github.com/dotnet/samples/tree/main/core/nativeaot/NativeLibrary/README.md). From 5abd84eff992656f09e3b545bc77d3ebb2ff5549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Wed, 21 Feb 2024 03:25:15 +0900 Subject: [PATCH 2/2] Update docs/core/deploying/native-aot/interop.md Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com> --- docs/core/deploying/native-aot/interop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/deploying/native-aot/interop.md b/docs/core/deploying/native-aot/interop.md index a02895707e6d8..665287e9cba91 100644 --- a/docs/core/deploying/native-aot/interop.md +++ b/docs/core/deploying/native-aot/interop.md @@ -79,5 +79,5 @@ Examples: The Native AOT compiler exports methods annotated with with a nonempty `EntryPoint` property as public C entry points. This makes it possible to either dynamically or statically link the AOT compiled modules into external -programs. Only methods marked `UnmanagedCallersOnly` in the published assembly are considered: methods in project references or NuGet packages will not be exported. +programs. Only methods marked `UnmanagedCallersOnly` in the published assembly are considered. Methods in project references or NuGet packages won't be exported. For more information, see [NativeLibrary sample](https://github.com/dotnet/samples/tree/main/core/nativeaot/NativeLibrary/README.md).