CSharpier.MsBuild 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package CSharpier.MsBuild --version 1.0.3
                    
NuGet\Install-Package CSharpier.MsBuild -Version 1.0.3
                    
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="CSharpier.MsBuild" Version="1.0.3">
  <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="CSharpier.MsBuild" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="CSharpier.MsBuild">
  <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 CSharpier.MsBuild --version 1.0.3
                    
#r "nuget: CSharpier.MsBuild, 1.0.3"
                    
#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 CSharpier.MsBuild@1.0.3
                    
#: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=CSharpier.MsBuild&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=CSharpier.MsBuild&version=1.0.3
                    
Install 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.

Quick Start

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.


Read the documentation

Try it out


Before

public class ClassName {
    public void CallMethod() { 
        this.LongUglyMethod("1234567890", "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
    }
}

After

public class ClassName
{
    public void CallMethod()
    {
        this.LongUglyMethod(
            "1234567890",
            "abcdefghijklmnopqrstuvwxyz",
            "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
        );
    }
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (18)

Showing the top 18 popular GitHub repositories that depend on CSharpier.MsBuild:

Repository Stars
Tyrrrz/YoutubeDownloader
Downloads videos and playlists from YouTube
Tyrrrz/DiscordChatExporter
Exports Discord chat logs to a file
Tyrrrz/CliWrap
Library for running command-line processes
Tyrrrz/YoutubeExplode
Abstraction layer over YouTube's internal API
martinothamar/Mediator
A high performance implementation of Mediator pattern in .NET using source generators.
Tyrrrz/LightBulb
Reduces eye strain by adjusting screen gamma based on the current time
Tyrrrz/CliFx
Class-first framework for building command-line interfaces
Tyrrrz/Onova
Unintrusive auto-update framework
PlexRipper/PlexRipper
A cross-platform Plex media downloader that seamlessly adds media from other Plex servers to your own!
Tyrrrz/DotnetRuntimeBootstrapper
Bootstrapped framework-dependent deployment for .NET applications
Tyrrrz/GitHubActionsTestLogger
.NET test logger that reports to GitHub Actions
jerry08/Anikin
A multi-platform app to stream/download videos.
protyposis/AudioAlign
Audio Synchronization and Analysis Tool
Tyrrrz/Gress
Progress reporting toolbox
protyposis/Aurio
Audio Fingerprinting & Retrieval for .NET
surrealdb/surrealdb.net
SurrealDB SDK for .NET
jerry08/Yosu
Downloads videos, tracks and playlists from YouTube, Soundcloud and Spotify
Hona/VerticalSliceArchitecture
Spend less time over-engineering, and more time coding. The template has a focus on convenience, and developer confidence. Vertical Slice Architecture 🎈
Version Downloads Last Updated
1.1.1 40 8/4/2025
1.1.0 20 8/3/2025
1.0.3 17,011 6/29/2025
1.0.2 51,878 5/24/2025
1.0.1 55,563 4/26/2025
1.0.0 18,648 4/22/2025
0.30.6 321,125 1/10/2025
0.30.5 50,919 1/3/2025
0.30.4 10,244 12/28/2024
0.30.3 50,118 12/7/2024
0.30.2 39,672 11/22/2024
0.30.1 30,690 11/18/2024
0.30.0 2,163 11/17/2024
0.29.2 160,942 9/15/2024
0.29.1 47,884 8/23/2024
0.29.0 25,251 8/17/2024
0.28.2 273,290 4/26/2024
0.28.1 5,946 4/16/2024
0.28.0 56,094 4/7/2024
0.27.3 71,292 2/18/2024
0.27.2 51,480 1/28/2024
0.27.1 18,047 1/24/2024
0.27.0 16,041 1/15/2024
0.26.7 25,965 12/16/2023
0.26.6 1,822 12/14/2023
0.26.5 7,242 12/10/2023
0.26.4 9,806 12/2/2023
0.26.3 10,591 11/23/2023
0.26.2 13,342 11/16/2023
0.26.1 4,722 11/9/2023
0.26.0 2,115 11/6/2023
0.25.0 63,561 6/25/2023
0.24.2 16,212 5/5/2023
0.24.1 31,821 4/26/2023
0.24.0 497 4/26/2023
0.23.0 16,582 3/6/2023
0.22.1 28,136 1/18/2023
0.22.0 42,249 1/15/2023
0.21.0 14,350 11/29/2022
0.20.0 9,039 10/3/2022
0.19.2 3,331 9/15/2022
0.19.1 1,245 8/27/2022
0.19.0 981 8/15/2022
0.18.0 6,710 6/13/2022
0.17.0 3,291 5/23/2022
0.16.0 6,706 3/26/2022
0.15.1 2,466 2/14/2022
0.15.0 2,585 2/9/2022
0.14.0 912 1/22/2022
0.13.0 18,789 1/3/2022
0.12.0 3,939 11/30/2021
0.11.2 7,408 11/16/2021
0.10.0 714 10/18/2021
0.9.9 7,883 8/23/2021
0.9.8 1,012 7/27/2021
0.9.7 585 6/26/2021
0.9.6 461 6/12/2021
0.9.5 460 6/1/2021
0.9.4 488 5/24/2021
0.9.3 1,110 5/24/2021