Self-contained vs framework-dependent
When do you publish a .NET Core app as framework-dependent vs self-contained?
Answers use simple, clear English.
Audio N/AQuick interview answer
FDD: smaller deploy, needs runtime on host (great with official Docker aspnet images). SCD: bundles runtime — larger, works without preinstalled runtime, good for locked-down VMs/edge. Pick RID carefully (linux-x64, win-x64).
Detailed answer
FDD: smaller deploy, needs runtime on host (great with official Docker aspnet images). SCD: bundles runtime — larger, works without preinstalled runtime, good for locked-down VMs/edge. Pick RID carefully (linux-x64, win-x64). Patching SCD means rebuild; FDD patches via base image/runtime update.
Real example & use case
Kubernetes: FDD on aspnet:8.0 image; customer VM without admin rights: SCD.
Pros & cons
Pros: flexible deploy modes. Cons: SCD size; RID mistakes on Alpine.