Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/core/deploying/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ When you publish a self-contained deployment (SCD), the publishing process creat

Publishing an SCD creates an app that doesn't roll forward to the latest available .NET security patch. For more information on version binding at compile time, see [Select the .NET version to use](../versions/selection.md#self-contained-deployments-include-the-selected-runtime).

> [!IMPORTANT]
> **Breaking change in .NET 8:** In .NET 8 and later, when you specify a runtime identifier with `-r <RID>`, the SDK no longer publishes a self-contained app by default.
> In .NET 7 and earlier, `-r <RID>` produced a self-contained app. To publish a self-contained app in .NET 8 and later, add `--self-contained` to the publish command.
> If you specify a RID without `--self-contained`, the SDK publishes a framework-dependent app, and the target machine must have the .NET runtime installed. For more information, see [Runtime-specific apps no longer self-contained](../compatibility/sdk/8.0/runtimespecific-app-default.md).
**Advantages**

- **Control .NET version**: Control which version of .NET is deployed with the app.
Expand Down Expand Up @@ -536,3 +540,4 @@ For more information about container deployment, see [.NET SDK container creatio
- [.NET Runtime Identifier (RID) catalog](../rid-catalog.md)
- [Select the .NET version to use](../versions/selection.md)
- [Publishing for macOS](macos.md)
- [Runtime-specific apps no longer self-contained](../compatibility/sdk/8.0/runtimespecific-app-default.md)
Loading