This page permanently redirects to gemini://mfgames.com/blog/2024/08/07/changed-default-dotnet-formatter/.

Changed the default .NET formatter (MfGames Project Setup Flake)

=> Up a Level

When we first introduced the .NET formatter for C# files, we picked csharpier[1] because it was a lot faster than dotnet format[2]. Since then, the opinionated formatting that came with csharpier was getting in the way of our style and along with conflcits with ReSharper[3].

=> 1: https://csharpier.com/ | 2: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-format | 3: https://www.jetbrains.com/resharper/

The latest is breaking change that switches the default formatter out but retains the csharpier formatting for those who want it. To put it back:

config = inputs.mfgames-project-setup.lib.mkConfig {
    inherit system pkgs;
    dotnet.enable = true;
    dotnet.csharpier = true;
    dotnet.format = false; # Defaults to false, so don't need it.
};

To use dotnet format, the setup would be:

config = inputs.mfgames-project-setup.lib.mkConfig {
    inherit system pkgs;
    dotnet.enable = true;
    dotnet.format = true;
};

Metadata

Categories:

=> MfGames Project Setup Flake

Footer

Below are various useful links within this site and to related sites (not all have been converted over to Gemini).

=> Categories

=> D. Moonfire | Fedran | The Moonfires

=> HTML

Proxy Information
Original URL
gemini://mfgames.com/blog/2024/08/07/changed-default-dotnet-formatter
Status Code
Success (20)
Meta
text/gemini;lang=en-US
Capsule Response Time
1180.181627 milliseconds
Gemini-to-HTML Time
0.526903 milliseconds

This content has been proxied by September (ba2dc).