csharp: support newer 'dotnet format' variant
Current pre-commit.hook
/format-csharp
looks for dotnet-format
, which is outdated according to their GitHub readme. The new version is just dotnet format
, and I can confirm that at least on macOS, with the .NET 8.0 SDK installed, dotnet-format
doesn't exist anymore and the precommit hook fails. Would be good to figure out if we can just replace the old command, or if both variants have to be supported.
cc @ylatuya