NativeAOT + PublishSingleFile + IncludeNativeLibrariesForSelfExtract #117986
Replies: 1 comment
-
Only reason is that it was never implemented. Extacting files to disk is very problematic (it's not reliable and has security implications). PublishSingleFile only has this functionality because when it first started in .NET 5 (or some other old release), it had to extract all managed assemblies to disk and run from there. Eventually the extraction stopped being used but the functionality was left for IncludeNativeLibrariesForSelfExtract. It was never implemented for Native AOT and it likely never will. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a reason the NativeAOT deployment model doesn't support
IncludeNativeLibrariesForSelfExtract=true
(when usingPublishSingleFile=true
)?Specifically, these properties don't "work" (it leaves native DLLs next to the EXE):
But if I remove
PublishAot
, it does produce a single file.Beta Was this translation helpful? Give feedback.
All reactions