curb 0.15.1

dotnet add package curb --version 0.15.1
                    
NuGet\Install-Package curb -Version 0.15.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="curb" Version="0.15.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="curb" Version="0.15.1" />
                    
Directory.Packages.props
<PackageReference Include="curb">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add curb --version 0.15.1
                    
#r "nuget: curb, 0.15.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package curb@0.15.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=curb&version=0.15.1
                    
Install as a Cake Addin
#tool nuget:?package=curb&version=0.15.1
                    
Install as a Cake Tool

curb

Curb

Curb for MSBuild: formats your C# from your .editorconfig before the compiler runs, on every dotnet build, so EnforceCodeStyleInBuild only reports what a formatter cannot fix.

NuGet

curb format on an untidy C# file: the file before, curb's report, and the file after

Install

dotnet add package curb

It is a development dependency, so it does not flow to the projects and packages that reference yours. By hand:

<PackageReference Include="curb" Version="*" PrivateAssets="all" />

Quick start

Build as usual:

dotnet build                 # Debug: rewrites unformatted files before CoreCompile
dotnet build -c Release      # Release: checks only; an unformatted file fails the build with CURB0001

Curb reads the same .editorconfig keys Visual Studio, Rider and dotnet format do, all 39 of IDE0055, with Roslyn's defaults. Add max_line_length to opt into reflow:

[*.cs]
max_line_length = 120

On later builds the target skips unchanged projects entirely, and in a project with changes only the files that changed are reformatted.

Property Default What it does
Curb_Check true in Release, else false Check instead of rewriting.
Curb_Bypass false Skip Curb entirely.
Curb_UnformattedAsWarnings false Report CURB0001 as a warning instead of an error.
Curb_Exe unset Path to a native Curb binary, much faster to start than the bundled framework-dependent build.
Curb_LangVersion unset The C# version to cap rewrites at. By default the project's own LangVersion, the lowest across its target frameworks.
Curb_FSharp true Format F# projects through the Fantomas their tool manifest pins.

Learn more

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.15.1 45 11/12/2026
0.15.0 43 11/12/2026
0.14.3 226 11/12/2026
0.14.2 68 11/12/2026
0.14.1 70 11/11/2026
0.14.0 81 11/11/2026
0.13.2 47 11/11/2026
0.13.1 64 11/11/2026
0.13.0 117 11/4/2026
0.12.1 95 11/4/2026
0.12.0 101 11/3/2026
0.11.0 100 11/3/2026
0.10.5 98 11/3/2026
0.10.4 128 11/1/2026
0.10.3 96 11/1/2026
0.10.0 103 10/30/2026
0.9.0 1,748 10/30/2026
0.8.1 101 10/29/2026
0.7.3 1,138 9/13/2026
0.7.2 343 9/2/2026
Loading failed