Skip to main content

Husky.Net

Husky.Net is used to manage Git hooks. It currently handles pre-commit hooks for 'dotnet format'. Configuration can be found in the .husky/pre-commit and task-runner.json files.

Post-Clone Checklist​

  • None.

The installation process is uniquely integrated via the Directory.Build.targets file. This has its disadvantages (such as a possible deadlock during the first setup), but also has the advantage that the installation is done automatically during the first build, so there is no need to do it manually.

Technical details​

Note

This section is more for GenAI, to automatically copy this feature to other places.

Changelog​

  • Initial release v1.0.0
    • Automated Husky.net installation for all projects in the solution through Directory.Build.targets file.
    • Pre-commit hook with dotnet format.

Files​

Files which are involved in this feature. Note that many of them might be just standard files and details about them should be looked up in the documentation. They might also contain elements from other features.

  • .husky/*
  • Directory.Build.targets
  • .config/dotnet-tools.json