self-contained deployment
Publishing an app together with its own copy of the .NET runtime, so the host needs no .NET installed.
In more detail
The runtime version is fixed at publish time. Deployment is more predictable, but the output is larger, specific to one operating system and processor, and must be republished to pick up runtime patches.
Related terms
- framework-dependent deployment — Publishing an app without the .NET runtime, so it relies on a compatible runtime already installed on the host.
- dotnet publish — The dotnet command that compiles an app and gathers everything needed to run it into a folder or container image, ready to deploy.
- trimming — A publishing option that removes code the trimmer can prove is unused, making a self-contained app or image smaller.
- CPU architecture — The family of instructions a processor understands, such as 64-bit Intel (amd64) or 64-bit Arm (arm64).
Taught in
- Solutions, Projects, and Target Frameworks — Modern .NET Core, C# & Enterprise Microservices
- OpenTelemetry, Container Publishing and Trimming — Modern .NET Core, C# & Enterprise Microservices