-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does Native AOT support exporting apis by serial number? #110979
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas |
You can manipulate the exports file by yourself with MSBuild, and update it before the NativeAOT compiler calls the linker. <Target Name="ReadExportsFile" BeforeTargets="LinkNative" DependsOnTargets="IlcCompile">
<ReadLinesFromFile File="$(ExportsFile)">
<Output TaskParameter="Lines" ItemName="_ExportsFileContent" />
</ReadLinesFromFile>
</Target>
<Target Name="WriteExportsFile" BeforeTargets="LinkNative" DependsOnTargets="ReadExportsFile">
<ItemGroup>
<_ExportsFileContent Remove="Foo" />
<_ExportsFileContent Include="Foo @42" />
</ItemGroup>
<WriteLinesToFile File="$(ExportsFile)" Lines="@(_ExportsFileContent)" Overwrite="True" />
</Target> Verify with
|
That WriteExportsFile target looks like the duplicate file write BuildCheck dotnet/msbuild#9881 dotnet/msbuild#10184 should warn about it. |
Nope. The exports file was originally not written by an MSBuild target. Instead, it was written by ilc directly. |
Closing as answered, we don't have plans to officially support this. |
Does Native AOT support exporting apis by serial number?
--------------------------
Native AOT 支持以序号导出 API 吗?
c++ generated Native DLLS can support ordinal export, such as Uxtheme.dll 135 API, 136 API used as the default right-click menu dark theme.
--------------------------
c++ 生成的 Native dll 可以支持以序号导出,比如 Uxtheme.dll 的 135 API,136 API 用作为默认右键菜单的深色主题。
The text was updated successfully, but these errors were encountered: