format - dotnet-format 3.0.4-prerelease.19175.5

Command line tool for formatting C# and Visual Basic code files based on .editorconfig settings.

PM> Install-Package dotnet-format -Version 3.0.4-prerelease.19175.5 -Source https://dotnet.myget.org/F/format/api/v3/index.json

Copy to clipboard

> nuget.exe install dotnet-format -Version 3.0.4-prerelease.19175.5 -Source https://dotnet.myget.org/F/format/api/v3/index.json

Copy to clipboard

> dotnet install tool -g dotnet-format --version 3.0.4-prerelease.19175.5 --source https://dotnet.myget.org/F/format/api/v3/index.json

Copy to clipboard
<DotNetCliToolReference Include="dotnet-format" Version="3.0.4-prerelease.19175.5" />
Copy to clipboard
source https://dotnet.myget.org/F/format/api/v3/index.json

nuget dotnet-format  ~> 3.0.4-prerelease.19175.5
Copy to clipboard

> choco install dotnet-format --version 3.0.4-prerelease.19175.5 --source https://dotnet.myget.org/F/format/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "format" -SourceLocation "https://dotnet.myget.org/F/format/api/v2"
Install-Module -Name "dotnet-format" -RequiredVersion "3.0.4-prerelease.19175.5" -Repository "format" -AllowPreRelease
Copy to clipboard

dotnet-format

Nuget

MyGet

Branch Windows (Debug) Windows (Release) Linux (Debug) Linux (Release) Localization (Debug) Localization (Release)
master Build Status Build Status Build Status Build Status Build Status Build Status

dotnet-format is a code formatter for dotnet that applies style preferences to a project or solution. Preferences will be read from an .editorconfig file, if present, otherwise a default set of preferences will be used. At this time dotnet-format is able to format C# and Visual Basic projects with a subset of supported .editorconfig options.

How To Install

The dotnet-format nuget package is published to nuget.org.

You can install the tool using the following command.

dotnet tool install -g dotnet-format

Installing Development Builds

Development builds of dotnet-format are being hosted on myget. You can visit the dotnet-format myget page to get the latest version number.

You can install the tool using the following command.

dotnet tool install -g dotnet-format --version 3.0.0-prerelease.19119.4 --add-source https://dotnet.myget.org/F/format/api/v3/index.json

How To Use

By default dotnet-format will look in the current directory for a project or solution file and use that as the workspace to format. If more than one project or solution file is present in the current directory you will need to specify the workspace to format using the -w option. You can control how verbose the output will be by using the -v option.

Usage:
  dotnet-format [options]

Options:
  -w, --workspace    The solution or project file to operate on. If a file is not specified, the command will search
                     the current directory for one.
  -v, --verbosity    Set the verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and
                     diag[nostic]
  --dry-run          Format files, but do not save changes to disk.
  --check            Terminate with non-zero exit code if any files need to be formatted in the workspace.
  --files            The files to operate on. If none specified, all files in workspace will be operated on.
  --version          Display version information

Add format after dotnet and before the command arguments that you want to run:

Examples
dotnet format
dotnet format -w <workspace>
dotnet format -v diag
dotnet format -w <workspace> -v diag

How To Uninstall

You can uninstall the tool using the following command.

dotnet tool uninstall -g dotnet-format

How To Build From Source

You can build and package the tool using the following commands. The instructions assume that you are in the root of the repository.

build -pack
# The final line from the build will read something like
# Successfully created package '..\artifacts\packages\Debug\Shipping\dotnet-format.3.0.0-dev.nupkg'.
# Use the value that is in the form `3.0.0-dev` as the version in the next command.
dotnet tool install --add-source .\artifacts\packages\Debug\Shipping -g dotnet-format --version <version>
dotnet format

Note: On macOS and Linux, .\artifacts will need be switched to ./artifacts to accommodate for the different slash directions.

  • .NETCoreApp 2.1: 2.1.0.0

Signature validation information

Informational

Signature Hash Algorithm: SHA256

Signature type: Author

Verifying the author primary signature with certificate: 
  Subject Name: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  SHA1 hash: F404000FB11E61F446529981C7059A76C061631E
  SHA256 hash: 3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE
  Issued by: CN=DigiCert SHA2 Assured ID Code Signing CA, OU=www.digicert.com, O=DigiCert Inc, C=US
  Valid from: 2/26/2018 12:00:00 AM to 1/27/2021 12:00:00 PM

Timestamp: 3/25/2019 7:36:45 PM

Verifying author primary signature's timestamp with timestamping service certificate: 
  Subject Name: CN=Symantec SHA256 TimeStamping Signer - G2, OU=Symantec Trust Network, O=Symantec Corporation, C=US
  SHA1 hash: 625AEC3AE4EDA1D169C4EE909E85B3BBC61076D3
  SHA256 hash: CF7AC17AD047ECD5FDC36822031B12D4EF078B6F2B4C5E6BA41F8FF2CF4BAD67
  Issued by: CN=Symantec SHA256 TimeStamping CA, OU=Symantec Trust Network, O=Symantec Corporation, C=US
  Valid from: 1/2/2017 12:00:00 AM to 4/1/2028 11:59:59 PM

Owners

Roslyn Team

Authors

Microsoft

Project URL

https://github.com/dotnet/format

License

MS-EULA

Signature

Validation: Valid

Info

0 total downloads
0 downloads for version 3.0.4-prerelease.19175.5
Download (11.14 MB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
3.0.4-prerelease.19175.5 11.14 MB Mon, 25 Mar 2019 19:37:41 GMT 0
3.0.4-prerelease.19175.4 11.13 MB Mon, 25 Mar 2019 19:30:12 GMT 0
3.0.4-prerelease.19175.3 11.13 MB Mon, 25 Mar 2019 18:43:01 GMT 0
3.0.4-prerelease.19175.1 11.13 MB Mon, 25 Mar 2019 17:18:28 GMT 0
3.0.4-prerelease.19174.1 11.14 MB Sun, 24 Mar 2019 03:37:12 GMT 0
3.0.4-prerelease.19173.2 11.13 MB Sat, 23 Mar 2019 13:01:04 GMT 0
3.0.4-prerelease.19173.1 11.13 MB Sat, 23 Mar 2019 12:59:15 GMT 0
3.0.4-prerelease.19172.2 11.14 MB Fri, 22 Mar 2019 12:59:20 GMT 0
3.0.4-prerelease.19172.1 11.13 MB Fri, 22 Mar 2019 12:53:53 GMT 0
3.0.4-prerelease.19171.3 11.14 MB Thu, 21 Mar 2019 18:35:49 GMT 0
3.0.4-prerelease.19171.2 11.13 MB Thu, 21 Mar 2019 12:56:45 GMT 0
3.0.4-prerelease.19171.1 11.13 MB Thu, 21 Mar 2019 12:53:07 GMT 0
3.0.4-prerelease.19169.3 11.13 MB Tue, 19 Mar 2019 21:06:04 GMT 0
3.0.4-prerelease.19169.2 11.13 MB Tue, 19 Mar 2019 16:56:35 GMT 0
3.0.4-prerelease.19168.1 11.13 MB Mon, 18 Mar 2019 22:12:40 GMT 0
3.0.4-prerelease.19164.1 11.13 MB Thu, 14 Mar 2019 12:05:31 GMT 0
3.0.4-prerelease.19163.2 11.13 MB Wed, 13 Mar 2019 17:18:14 GMT 0
3.0.4-prerelease.19163.1 11.13 MB Wed, 13 Mar 2019 03:39:34 GMT 0
3.0.4-prerelease.19162.2 11.13 MB Tue, 12 Mar 2019 16:48:35 GMT 0
3.0.4-prerelease.19162.1 11.13 MB Tue, 12 Mar 2019 12:13:29 GMT 0
3.0.4-prerelease.19161.3 11.13 MB Mon, 11 Mar 2019 12:12:53 GMT 0
3.0.4-prerelease.19161.2 11.13 MB Mon, 11 Mar 2019 12:10:14 GMT 0
3.0.4-prerelease.19161.1 11.13 MB Mon, 11 Mar 2019 03:28:12 GMT 0
3.0.4-prerelease.19160.3 11.13 MB Mon, 11 Mar 2019 00:02:13 GMT 0
3.0.4-prerelease.19160.2 11.13 MB Sun, 10 Mar 2019 13:09:27 GMT 0
3.0.4-prerelease.19160.1 11.13 MB Sun, 10 Mar 2019 13:04:34 GMT 0
3.0.4-prerelease.19159.2 11.13 MB Sat, 09 Mar 2019 14:11:45 GMT 0
3.0.4-prerelease.19159.1 11.13 MB Sat, 09 Mar 2019 14:08:40 GMT 0
3.0.4-prerelease.19156.1 11.13 MB Wed, 06 Mar 2019 01:39:04 GMT 0
3.0.4-prerelease.19155.2 11.13 MB Tue, 05 Mar 2019 14:24:12 GMT 0
3.0.4-prerelease.19155.1 11.13 MB Tue, 05 Mar 2019 14:11:32 GMT 0
3.0.4-prerelease.19154.2 11.13 MB Mon, 04 Mar 2019 17:28:08 GMT 0
3.0.4-prerelease.19154.1 11.13 MB Mon, 04 Mar 2019 17:23:48 GMT 0
3.0.4-prerelease.19152.2 11.13 MB Sat, 02 Mar 2019 14:14:07 GMT 0
3.0.4-prerelease.19152.1 11.13 MB Sat, 02 Mar 2019 14:09:52 GMT 0
3.0.4-prerelease.19151.5 11.13 MB Fri, 01 Mar 2019 21:41:29 GMT 0
3.0.4-prerelease.19151.4 11.32 MB Fri, 01 Mar 2019 14:16:41 GMT 0
3.0.4-prerelease.19151.3 11.32 MB Fri, 01 Mar 2019 14:14:06 GMT 0
3.0.4-prerelease.19151.2 11.32 MB Fri, 01 Mar 2019 01:38:06 GMT 0
3.0.4-prerelease.19151.1 11.32 MB Fri, 01 Mar 2019 01:29:24 GMT 0
3.0.4-prerelease.19128.11 11.32 MB Thu, 28 Feb 2019 21:31:42 GMT 0
3.0.4-prerelease.19128.10 11.32 MB Thu, 28 Feb 2019 21:14:30 GMT 0
3.0.4-prerelease.19128.9 11.32 MB Thu, 28 Feb 2019 20:54:33 GMT 0
3.0.4-prerelease.19128.7 11.32 MB Thu, 28 Feb 2019 18:11:06 GMT 0
3.0.3 11.32 MB Thu, 28 Feb 2019 18:08:42 GMT 0
3.0.3-prerelease.19128.8 11.32 MB Thu, 28 Feb 2019 20:50:07 GMT 0
3.0.3-prerelease.19128.5 11.32 MB Thu, 28 Feb 2019 17:38:29 GMT 0
3.0.3-prerelease.19128.4 11.32 MB Thu, 28 Feb 2019 16:55:15 GMT 0
3.0.2 11.3 MB Wed, 27 Feb 2019 18:37:58 GMT 0
3.0.2-prerelease.19128.3 11.32 MB Thu, 28 Feb 2019 03:19:08 GMT 0
3.0.2-prerelease.19128.2 11.3 MB Thu, 28 Feb 2019 03:12:27 GMT 0
3.0.2-prerelease.19128.1 11.3 MB Thu, 28 Feb 2019 01:04:45 GMT 0
3.0.2-prerelease.19127.6 11.3 MB Wed, 27 Feb 2019 18:31:49 GMT 0
3.0.2-prerelease.19127.5 11.3 MB Wed, 27 Feb 2019 17:25:35 GMT 0
3.0.2-prerelease.19127.4 11.3 MB Wed, 27 Feb 2019 17:15:45 GMT 0
3.0.1 11.3 MB Mon, 25 Feb 2019 23:30:43 GMT 0
3.0.1-prerelease.19127.3 11.3 MB Wed, 27 Feb 2019 17:08:45 GMT 0
3.0.1-prerelease.19127.2 11.3 MB Wed, 27 Feb 2019 14:06:14 GMT 0
3.0.1-prerelease.19127.1 11.3 MB Wed, 27 Feb 2019 00:39:58 GMT 0
3.0.1-prerelease.19126.3 11.3 MB Tue, 26 Feb 2019 14:19:38 GMT 0
3.0.1-prerelease.19126.2 11.3 MB Tue, 26 Feb 2019 14:11:15 GMT 0
3.0.1-prerelease.19126.1 11.3 MB Tue, 26 Feb 2019 04:50:29 GMT 0
3.0.1-prerelease.19125.9 11.3 MB Mon, 25 Feb 2019 23:28:28 GMT 0
3.0.1-prerelease.19125.7 11.3 MB Mon, 25 Feb 2019 22:10:50 GMT 0
3.0.1-prerelease.19125.6 11.3 MB Mon, 25 Feb 2019 21:35:05 GMT 0
3.0.1-prerelease.19125.5 11.3 MB Mon, 25 Feb 2019 21:24:36 GMT 0
3.0.1-prerelease.19125.4 11.3 MB Mon, 25 Feb 2019 20:15:40 GMT 0
3.0.1-prerelease.19125.2 11.3 MB Mon, 25 Feb 2019 14:16:47 GMT 0
3.0.1-prerelease.19125.1 11.3 MB Mon, 25 Feb 2019 14:02:46 GMT 0
3.0.1-prerelease.19124.2 11.3 MB Sun, 24 Feb 2019 14:04:43 GMT 0
3.0.1-prerelease.19124.1 11.3 MB Sun, 24 Feb 2019 14:00:46 GMT 0
3.0.0-prerelease.19119.4 11.24 MB Tue, 19 Feb 2019 22:15:31 GMT 0