Which OS-dependencies does a self-contained app need? #116386
-
Hello, Let's say I have compiled a .NET app for Linux, with self-contained deployment enabled. Which package dependencies does it need to run? For example, .NET 9 runtime for Ubuntu lists the following required dependencies:
Are all of those dependencies required for execution, considering .NET runtime is not installed on the machine? Also, the same question above, but for NativeAOT publishing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
hostfxr is for framework-dependent to resolve the framework. It should not be required for self-contained. |
Beta Was this translation helpful? Give feedback.
hostfxr is for framework-dependent to resolve the framework. It should not be required for self-contained.
libc/libgcc/libstdc++/libunwind is required for the base CLR runtime. NativeAOT should have got rid of libstdc++, but the others are required.
liblttng should be required if you are not disabling eventing and diagnosing.
libicu is required if you are not setting globalization invariant mode.
brotli/ssl/zlib is only required if you are using corresponding or cryptography feature. Note that cryptography is implicitly used by many components.