Refresh dotnet command reference#48787
Merged
meaghanlewis merged 12 commits intodotnet:mainfrom Oct 7, 2025
Merged
Conversation
gewarren
approved these changes
Sep 30, 2025
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
adegeo
reviewed
Oct 1, 2025
adegeo
reviewed
Oct 1, 2025
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.
Summary
This pull request updates the documentation for several .NET CLI commands to align with the .NET 6 SDK and later, and improves accuracy, consistency, and clarity across multiple command reference articles. The most important changes include updating supported version statements, revising command option lists and defaults, and adding new options and help references. Below are the most significant changes grouped by theme.
Documentation version updates
dotnet-build.md,dotnet-clean.md,dotnet-dev-certs.md,dotnet-format.md,dotnet-msbuild.md,dotnet-pack.md) to specify ".NET 6 SDK and later versions" for improved clarity and consistency. [1] [2] [3] [4] [5] [6]Command option and behavior improvements
Updated the synopsis and option lists for
dotnet build,dotnet pack, anddotnet formatto reflect current CLI syntax, including reordering, renaming, and clarifying options such as--self-contained,--use-current-runtime, and--disable-build-servers. Default behaviors for options like--self-containedare now more accurately described. [1] [2] [3] [4] [5]Added new options and improved descriptions, such as
--check-trust-machine-readablefordotnet dev-certs, and expanded the option explanations fordotnet formatto include new filtering and reporting capabilities. [1] [2] [3]Inclusion of help and interactive references
[!INCLUDE [help](...)]and[!INCLUDE [interactive](...)]blocks across all command docs for improved discoverability and consistency. [1] [2] [3] [4] [5] [6]Example and formatting consistency
dotnet format.mdto match new option syntax, and clarified usage scenarios for style and analyzer subcommands.Minor corrections and updates
ms.datefields to reflect the new documentation revision date and made minor formatting corrections in "See also" sections and option lists. [1] [2] [3]These changes help keep the documentation up to date with the latest SDK releases and provide clearer guidance for users of the .NET CLI.
Fixes #48686
Internal previews
Toggle expand/collapse