XmlDocFormat.Cli 0.9.8

dotnet tool install --global XmlDocFormat.Cli --version 0.9.8
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local XmlDocFormat.Cli --version 0.9.8
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=XmlDocFormat.Cli&version=0.9.8
                    
nuke :add-package XmlDocFormat.Cli --version 0.9.8
                    

XmlDocFormat

This is a utility tool to format C# XML documentation comments by enforcing a max line length limit, re-wrapping text and consistent tag formatting.

Dependencies

Usage

The tool is offered as a CLI tool that can be installed via dotnet tool, either locally or globally. With the XmlDocFormat command, you can quickly format XML documentation comments in C# source files across an entire directory.

Find the releases on NuGet

Install via the .NET CLI:

dotnet tool install -g XmlDocFormat.Cli

Commands

The available commands are:

  • format <file-path> [-d] [-r] [-o <path>] [-p <number>] [-l <length>]

For all commands, the order of the options is not strict.

See also:

Testing

The project has been tested against example cases, in the XmlDocFormat.Tests project. However, the test suite is not exhaustive. Feel free to report any bugs in the repo's issues.

Contributing

For the main formatter's logic in XmlDocFormatter, development was heavily AI-driven, thus code quality might be subpar. Contributions to improve the codebase in that area are always welcome, but will be susceptible to heavy adjustments as more features are included. As a result, it's recommended to focus more on delivering the functionality rather than perfect code style, at least at the present.

All other parts of the codebase were entirely human-written. Contributions in these areas must adhere to the existing code style and quality, without deviating from the main goal of the architecture; a CLI tool that is tested via mocking to reduce side-effects and risk during testing, that's also split into a core logic library for the event that it gets released as a separate package.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.9.8 0 1/18/2026