curb 0.15.1
dotnet add package curb --version 0.15.1
NuGet\Install-Package curb -Version 0.15.1
<PackageReference Include="curb" Version="0.15.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="curb" Version="0.15.1" />
<PackageReference Include="curb"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add curb --version 0.15.1
#r "nuget: curb, 0.15.1"
#:package curb@0.15.1
#addin nuget:?package=curb&version=0.15.1
#tool nuget:?package=curb&version=0.15.1
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.

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
- Documentation: https://curb.nullean.net, and the full property list in MSBuild integration
- The CLI for pre-commit hooks, CI and scripting: curb-cli
- Source and issues: https://github.com/nullean/curb
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 |