Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CLI --self-contained description is wrong - #51088

#51088
Open
adegeo wants to merge 2 commits into
release/10.0.1xxdotnet/sdk:release/10.0.1xxfrom
adegeo/cli-descriptiondotnet/sdk:adegeo/cli-descriptionCopy head branch name to clipboard
Open

CLI --self-contained description is wrong#51088
adegeo wants to merge 2 commits into
release/10.0.1xxdotnet/sdk:release/10.0.1xxfrom
adegeo/cli-descriptiondotnet/sdk:adegeo/cli-descriptionCopy head branch name to clipboard

Conversation

@adegeo

@adegeo adegeo commented Oct 1, 2025

Copy link
Copy Markdown

It looks like #32656 updated the --self-contained description incorrectly. The code change that triggered the old PR was actually related to the --runtime parameter no longer enforcing self-contained=true. It had nothing to do with the --self-contained option itself.

--self-contained is an option argument type and defaults to true when passed.

@baronfel

@baronfel

baronfel commented Oct 1, 2025

Copy link
Copy Markdown
Member

@adegeo you'll need to update the xlf files on your fork to bump the translations. After that, you'll probably need to update the CLI snapshot tests.

@nagilson nagilson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That's a great call out. By default, I didn't mean the value of the command argument but the value of the SelfContained property itself. SelfContained itself is 'false' by default (with no argument) but providing --self-contained makes it true. I don't think we need this breaking change string at this point.

@adegeo

adegeo commented Oct 6, 2025

Copy link
Copy Markdown
Author

@baronfel I removed the lines from the translation files. I don't know what to do about the other item you said.

@nagilson

nagilson commented Oct 7, 2025

Copy link
Copy Markdown
Member

Thank you @adegeo for driving the extra effort to fix the files and improve our docs by making a PR. And to @baronfel for adding help context.

I don't think we should expect our doc writers to be able to fix the tests on our repo. This should really be an automatable process and it is not a valuable use of human time/energy to fix either the xlf files or the completions snapshots. I've created #51157 to see if the bot can write something to teach itself to do these tasks for us.

@marcpopMSFT

Copy link
Copy Markdown
Member

@nagilson I assume this isn't for GA so we probably need to backport to 2xx or retarget to 2xx (whichever works).

@github-actions

Copy link
Copy Markdown
Contributor

Due to lack of recent activity, this PR has been labeled as 'Stale'. It will be closed if no further activity occurs within 7 more days. Any new comment will remove the label.

@github-actions github-actions Bot added the stale label Apr 23, 2026
@adegeo

adegeo commented Apr 24, 2026

Copy link
Copy Markdown
Author

@baronfel

Copilot AI review requested due to automatic review settings April 24, 2026 18:16
@baronfel
baronfel force-pushed the adegeo/cli-description branch from 59a8d75 to 7fa3c26 Compare April 24, 2026 18:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR corrects the --self-contained help text by removing previously-added defaulting details that actually described the --runtime behavior change (not the --self-contained option itself).

Changes:

  • Updates SelfContainedOptionDescription in the source resource (CliStrings.resx) to a single-sentence description.
  • Propagates the updated English source string across multiple localized .xlf files by removing the extra sentence from both <source> and <target>.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Cli/dotnet/CliStrings.resx Updates the canonical English description for --self-contained.
src/Cli/dotnet/xlf/CliStrings.zh-Hant.xlf Updates localized resource entry for SelfContainedOptionDescription.
src/Cli/dotnet/xlf/CliStrings.zh-Hans.xlf Updates localized resource entry for SelfContainedOptionDescription.
src/Cli/dotnet/xlf/CliStrings.tr.xlf Updates localized resource entry for SelfContainedOptionDescription.
src/Cli/dotnet/xlf/CliStrings.ru.xlf Updates localized resource entry for SelfContainedOptionDescription.
src/Cli/dotnet/xlf/CliStrings.pt-BR.xlf Updates localized resource entry for SelfContainedOptionDescription.
src/Cli/dotnet/xlf/CliStrings.pl.xlf Updates localized resource entry for SelfContainedOptionDescription.
src/Cli/dotnet/xlf/CliStrings.ko.xlf Updates localized resource entry for SelfContainedOptionDescription.
src/Cli/dotnet/xlf/CliStrings.ja.xlf Updates localized resource entry for SelfContainedOptionDescription.
src/Cli/dotnet/xlf/CliStrings.it.xlf Updates localized resource entry for SelfContainedOptionDescription.
src/Cli/dotnet/xlf/CliStrings.fr.xlf Updates localized resource entry for SelfContainedOptionDescription.
src/Cli/dotnet/xlf/CliStrings.es.xlf Updates localized resource entry for SelfContainedOptionDescription.
src/Cli/dotnet/xlf/CliStrings.de.xlf Updates localized resource entry for SelfContainedOptionDescription.
src/Cli/dotnet/xlf/CliStrings.cs.xlf Updates localized resource entry for SelfContainedOptionDescription.

Comment on lines 543 to 545
<data name="SelfContainedOptionDescription" xml:space="preserve">
<value>Publish the .NET runtime with your application so the runtime doesn't need to be installed on the target machine.
The default is 'false.' However, when targeting .NET 7 or lower, the default is 'true' if a runtime identifier is specified.</value>
<value>Publish the .NET runtime with your application so the runtime doesn't need to be installed on the target machine.</value>
</data>
<target state="translated">Hiermit wird die .NET-Runtime mit Ihrer Anwendung veröffentlicht, sodass die Runtime nicht auf dem Zielcomputer installiert werden muss.
Der Standardwert lautet FALSE. Wenn sie jedoch auf .NET 7 oder niedriger abzielen, lautet der Standardwert TRUE, wenn ein Laufzeitbezeichner angegeben wird.</target>
<source>Publish the .NET runtime with your application so the runtime doesn't need to be installed on the target machine.</source>
<target state="translated">Hiermit wird die .NET-Runtime mit Ihrer Anwendung veröffentlicht, sodass die Runtime nicht auf dem Zielcomputer installiert werden muss.</target>
@github-actions github-actions Bot removed the stale label Apr 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Due to lack of recent activity, this PR has been labeled as 'Stale'. It will be closed if no further activity occurs within 7 more days. Any new comment will remove the label.

@github-actions github-actions Bot added the stale label Jun 24, 2026
@baronfel
baronfel force-pushed the adegeo/cli-description branch from 7fa3c26 to 730076b Compare June 24, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.