docs: Document .NET 8 self-contained deployment default change and add troubleshooting#53498
Draft
docs: Document .NET 8 self-contained deployment default change and add troubleshooting#53498
Conversation
Agent-Logs-Url: https://github.com/dotnet/docs/sessions/91c4d633-21c5-4da9-ac8e-defc4bf0bd2f Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add documentation for .NET 8 self-contained deployment change
docs: Document .NET 8 self-contained deployment default change and add troubleshooting
Apr 29, 2026
gewarren
reviewed
Apr 29, 2026
|
|
||
| For more information about container deployment, see [.NET SDK container creation overview](../containers/overview.md). | ||
|
|
||
| ## Troubleshoot self-contained deployment |
Contributor
There was a problem hiding this comment.
This should probably go under the self-contained section, if it's needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In .NET 8, specifying
-r <RID>no longer implies--self-contained— apps now publish framework-dependent by default even with a RID. This silent behavioral change from .NET 7 has caused widespread confusion (16k-view SO question).Changes to
docs/core/deploying/index.mdBreaking change callout — Added
[!IMPORTANT]alert at the top of the Self-contained deployment section, explicitly stating that-r <RID>alone no longer produces a self-contained app in .NET 8+:Troubleshooting section — Added
## Troubleshoot self-contained deploymentbefore## See alsowith:coreclr.dll/libcoreclr.so/libcoreclr.dylibin the publish folder; includes project-file fix via<SelfContained>true</SelfContained>See also — Added link to the Runtime-specific apps no longer self-contained breaking change article