Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dotnet-publish.md #45430

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update dotnet-publish.md #45430

wants to merge 1 commit into from

Conversation

baronfel
Copy link
Member

@baronfel baronfel commented Mar 19, 2025

Call out that doing a single-file publish is self-contained, not framework-dependent.

Summary

This information is kind of spread around, but since this flag has a pretty drastic impact let's make the implication an _ex_plication here.


Internal previews

📄 File 🔗 Preview link
docs/core/tools/dotnet-publish.md docs/core/tools/dotnet-publish

Call out that doing a single-file publish is self-contained, not framework-dependent.
@@ -94,7 +94,7 @@ The following MSBuild properties change the output of `dotnet publish`.

- `PublishSingleFile`

Packages the app into a platform-specific single-file executable. For more information about single-file publishing, see the [single-file bundler design document](https://github.com/dotnet/designs/blob/main/accepted/2020/single-file/design.md).
Packages the app into a platform-specific single-file executable. For more information about single-file publishing, see the [single-file bundler design document](https://github.com/dotnet/designs/blob/main/accepted/2020/single-file/design.md). This implicitly sets the `PublishSelfContained` property to `true` when this property is set to `true`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Packages the app into a platform-specific single-file executable. For more information about single-file publishing, see the [single-file bundler design document](https://github.com/dotnet/designs/blob/main/accepted/2020/single-file/design.md). This implicitly sets the `PublishSelfContained` property to `true` when this property is set to `true`.
Packages the app into a platform-specific single-file executable. For more information about single-file publishing, see the [single-file bundler design document](https://github.com/dotnet/designs/blob/main/accepted/2020/single-file/design.md). When this property is set to `true`, the `PublishSelfContained` property is implicitly set to `true`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants