![]() |
VOOZH | about |
dotnet add package CSharpier.Core --version 1.3.0
NuGet\Install-Package CSharpier.Core -Version 1.3.0
<PackageReference Include="CSharpier.Core" Version="1.3.0" />
<PackageVersion Include="CSharpier.Core" Version="1.3.0" />Directory.Packages.props
<PackageReference Include="CSharpier.Core" />Project file
paket add CSharpier.Core --version 1.3.0
#r "nuget: CSharpier.Core, 1.3.0"
#:package CSharpier.Core@1.3.0
#addin nuget:?package=CSharpier.Core&version=1.3.0Install as a Cake Addin
#tool nuget:?package=CSharpier.Core&version=1.3.0Install as a Cake Tool
CSharpier is an opinionated code formatter for c#. It uses Roslyn to parse your code and re-prints it using its own rules. The printing process was ported from prettier but has evolved over time.
CSharpier provides a few basic options that affect formatting and has no plans to add more. It follows the Option Philosophy of prettier.
Install CSharpier globally using the following command.
dotnet tool install csharpier -g
Then format the contents of a directory and its children with the following command.
csharpier .
CSharpier can also format on save in your editor, as a pre-commit hook, as part of your build or even programatically. Then you can ensure code was formatted with a CI/CD tool.
public class ClassName {
public void CallMethod() {
this.LongUglyMethod("1234567890", "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
}
}
public class ClassName
{
public void CallMethod()
{
this.LongUglyMethod(
"1234567890",
"abcdefghijklmnopqrstuvwxyz",
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
);
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 3 NuGet packages that depend on CSharpier.Core:
| Package | Downloads |
|---|---|
|
Credfeto.DotNet.Repo.Tools.CleanUp
Dotnet Repository Update tools |
|
|
EventHorizon.Blazor.TypeScript.Interop.Generator
Parser for TypeScript definitions to create C# representations. The package provides three layers type of generators Class Statement, ClassStatement string, and writer based generation. |
|
|
descarga-ciec-csharp
SDK para la descarga masiva de CFDI a través del servicio CIEC de CSFacturacion (Beta) |
Showing the top 4 popular GitHub repositories that depend on CSharpier.Core:
| Repository | Stars |
|---|---|
|
querylenshq/ef-querylens
See the SQL EF Core will generate in real-time while you write LINQ.
|
|
|
Altinn/altinn-studio
Next generation open source Altinn platform and applications.
|
|
|
canhorn/EventHorizon.Blazor.TypeScript.Interop.Generator
This project is a Blazor Interop C# Generator, has a sample against the BabylonJS library.
|
|
|
opensearch-project/opensearch-net
OpenSearch .NET Client
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.0 | 309 | 6/7/2026 |
| 1.2.6 | 16,465 | 2/6/2026 |
| 1.2.5 | 6,982 | 12/31/2025 |
| 1.2.4 | 573 | 12/23/2025 |
| 1.2.3 | 494 | 12/14/2025 |
| 1.2.2 | 281 | 12/13/2025 |
| 1.2.1 | 35,895 | 11/10/2025 |
| 1.2.0 | 508 | 11/10/2025 |
| 1.1.2 | 23,712 | 8/16/2025 |
| 1.1.1 | 2,698 | 8/4/2025 |
| 1.1.0 | 380 | 8/3/2025 |
| 1.0.3 | 8,265 | 6/29/2025 |
| 1.0.2 | 7,108 | 5/24/2025 |
| 1.0.1 | 30,127 | 4/26/2025 |
| 1.0.0 | 863 | 4/22/2025 |
| 0.30.6 | 44,793 | 1/10/2025 |
| 0.30.5 | 997 | 1/3/2025 |
| 0.30.4 | 575 | 12/28/2024 |
| 0.30.3 | 1,857 | 12/7/2024 |
| 0.30.2 | 6,401 | 11/22/2024 |