- 
                Notifications
    
You must be signed in to change notification settings  - Fork 6.1k
 
Refresh dotnet command reference #48787
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
          
     Merged
      
      
            meaghanlewis
  merged 12 commits into
  dotnet:main
from
meaghanlewis:refresh-dotnet-command-reference
  
      
      
   
  Oct 7, 2025 
      
    
                
     Merged
            
            Refresh dotnet command reference #48787
                    meaghanlewis
  merged 12 commits into
  dotnet:main
from
meaghanlewis:refresh-dotnet-command-reference
  
      
      
   
  Oct 7, 2025 
              
            Conversation
  
    
      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
    
  
  
    
    
              
                    gewarren
  
              
              approved these changes
              
                  
                    Sep 30, 2025 
                  
              
              
            
            
Co-authored-by: Genevieve Warren <[email protected]>
Co-authored-by: Genevieve Warren <[email protected]>
Co-authored-by: Genevieve Warren <[email protected]>
              
                    adegeo
  
              
              reviewed
              
                  
                    Oct 1, 2025 
                  
              
              
            
            
              
                    adegeo
  
              
              reviewed
              
                  
                    Oct 1, 2025 
                  
              
              
            
            
  
    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