Skip to content

Conversation

@meaghanlewis
Copy link
Contributor

@meaghanlewis meaghanlewis commented Nov 21, 2025

Summary

This pull request updates several .NET CLI documentation files to standardize the usage of shared option and argument descriptions. The main change is replacing manually written option and argument descriptions with consistent [!INCLUDE ...] statements that reference shared markdown include files. This improves maintainability and consistency across the documentation.

Standardization of CLI option/argument documentation:

  • Updated the includes files to remove the list item (-) and then update the markdown reference to include the list item
  • Replaced manual descriptions of options such as --help, --configfile, and --interactive with [!INCLUDE ...] statements in multiple command docs, including dotnet build, dotnet clean, dotnet format, dotnet help, and various dotnet nuget commands.
  • Removed redundant manual help/option descriptions in favor of shared includes, making future updates easier and less error-prone.

These changes make the CLI documentation easier to maintain and more consistent for users.

Fixes #49500


Internal previews

Toggle expand/collapse
📄 File 🔗 Preview link
docs/core/tools/dotnet-build.md dotnet build
docs/core/tools/dotnet-clean.md dotnet clean command
docs/core/tools/dotnet-new-details.md dotnet new details
docs/core/tools/dotnet-new-install.md docs/core/tools/dotnet-new-install
docs/core/tools/dotnet-new-list.md dotnet new list
docs/core/tools/dotnet-new-uninstall.md dotnet new uninstall
docs/core/tools/dotnet-new-update.md dotnet new update
docs/core/tools/dotnet-new.md dotnet new <TEMPLATE>
docs/core/tools/dotnet-nuget-config-set.md docs/core/tools/dotnet-nuget-config-set
docs/core/tools/dotnet-nuget-config-unset.md dotnet nuget config unset
docs/core/tools/dotnet-nuget-trust.md dotnet nuget trust command
docs/core/tools/dotnet-pack.md dotnet pack
docs/core/tools/dotnet-package-download.md dotnet package download
docs/core/tools/dotnet-package-list.md docs/core/tools/dotnet-package-list
docs/core/tools/dotnet-package-search.md dotnet package search
docs/core/tools/dotnet-package-update.md dotnet package update command
docs/core/tools/dotnet-publish.md dotnet publish
docs/core/tools/dotnet-restore.md docs/core/tools/dotnet-restore
docs/core/tools/dotnet-run.md dotnet run
docs/core/tools/dotnet-sln.md dotnet sln command
docs/core/tools/dotnet-test.md dotnet test
docs/core/tools/dotnet-tool-exec.md dotnet tool exec
docs/core/tools/dotnet-tool-install.md docs/core/tools/dotnet-tool-install
docs/core/tools/dotnet-tool-restore.md dotnet tool restore
docs/core/tools/dotnet-tool-update.md dotnet tool update command
docs/core/tools/dotnet-watch.md dotnet watch
docs/core/tools/dotnet-workload-install.md docs/core/tools/dotnet-workload-install
docs/core/tools/dotnet-workload-repair.md dotnet workload repair
docs/core/tools/dotnet-workload-restore.md dotnet workload restore
docs/core/tools/dotnet-workload-update.md dotnet workload update command

Note

This table shows preview links for the 30 files with the most changes. For preview links for other files in this PR, select OpenPublishing.Build Details within checks.

Copy link
Contributor

@adegeo adegeo left a comment

Choose a reason for hiding this comment

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

Approving to unblock. A few minor things to fix.

GREAT JOB!

@meaghanlewis meaghanlewis changed the title [WIP] Update includes files for .NET CLI Update includes files for .NET CLI Nov 21, 2025
@meaghanlewis meaghanlewis marked this pull request as ready for review November 21, 2025 23:30
Copilot AI review requested due to automatic review settings November 21, 2025 23:30
@meaghanlewis meaghanlewis requested a review from a team as a code owner November 21, 2025 23:30
Copilot finished reviewing on behalf of meaghanlewis November 21, 2025 23:32
Copy link
Contributor

Copilot AI left a comment

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 standardizes the .NET CLI documentation by moving shared option and argument descriptions into reusable include files. The changes improve maintainability by centralizing commonly repeated content like --help, --interactive, --verbosity, and other standard CLI options.

Key Changes:

  • Modified include files to remove the list item marker (-) from the beginning of the option definition
  • Updated all referencing documentation files to add the list item marker (-) before the [!INCLUDE ...] statement
  • Deleted redundant include files (cli-interactive-3-0.md, cli-interactive-5-0.md, cli-arch-no-a.md) in favor of the base versions

Reviewed changes

Copilot reviewed 97 out of 97 changed files in this pull request and generated no comments.

Show a summary per file
File Description
includes/*.md (29 files) Removed list item markers from option definitions to enable proper list formatting when included
docs/core/tools/dotnet-build.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-clean.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-format.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-help.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-new*.md (7 files) Added list markers before include statements for standardized options
docs/core/tools/dotnet-nuget*.md (14 files) Added list markers before include statements for standardized options
docs/core/tools/dotnet-pack.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-package*.md (5 files) Added list markers before include statements for standardized options
docs/core/tools/dotnet-publish.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-reference*.md (3 files) Added list markers before include statements for standardized options
docs/core/tools/dotnet-restore.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-run.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-sdk-check.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-sln.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-store.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-test.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-tool*.md (8 files) Added list markers before include statements for standardized options
docs/core/tools/dotnet-watch.md Added list markers before include statements for standardized options
docs/core/tools/dotnet-workload*.md (8 files) Added list markers before include statements for standardized options

@meaghanlewis meaghanlewis merged commit bb0eda8 into dotnet:main Nov 21, 2025
16 checks passed
@meaghanlewis meaghanlewis deleted the update-cli-include-files branch November 21, 2025 23:51
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.

Update includes files for .NET CLI docs

2 participants