Dotnet Format Versions Save

Home for the dotnet-format command

v5.0.211103

3 years ago

View Complete Diff of Changes

New Features

  • Can now apply codestyle codefixes automatically with dotnet format --fix-codestyle
  • Can now apply analyzer codefixes automatically with dotnet format --fix-analyzers

Breaking Changes

Removed Deprecated options from 4.0:

  • Removed --dry-run should use --check instead
  • Removed --files should use --include instead
  • Removed --workspace this option is now implied

Changes:

v4.0.130203

3 years ago

View Complete Diff of Changes

Breaking Changes:

  • Added an imports formatter for sorting imports.
  • Format now runs on the latest installed Runtime.
  • --check and --dry-run have combined into a single option.
  • --include and --exclude use space-separated paths instead of comma-separated.

Deprecations:

  • Added warning to use the default argument instead of --workspace option. Use dotnet format ./format.sln instead of dotnet format -w ./format.sln
  • Added warning to use the default argument to specify the folder path when using the --folder option. Use dotnet format ./src -f instead of dotnet format -f ./src
  • Added warning to use --include instead of --files alias.
  • Added warning to use --check instead of --dry-run alias.

Merged PRs:

v3.0.2

4 years ago

Initial Release

  • Partial support for core .editorconfig options
  • Support for .NET whitespace formatting options
  • Support for --dry-run option