Husky 0.9.1
dotnet tool install --global Husky --version 0.9.1
dotnet new tool-manifest
dotnet tool install --local Husky --version 0.9.1
#tool dotnet:?package=Husky&version=0.9.1
nuke :add-package Husky --version 0.9.1
Husky.Net
Introduction
Husky improves your commits and more 🐶 woof! Run linters against staged git files and don't let 💩 slip into your code base!
Inspired by the awesome Husky and lint-staged tools from the JS world, I built Husky.Net to bring the same power and simplicity to .NET developers — and then some! It lets you lint your commit messages, run tests, format or analyze code, and perform any other checks automatically when you commit or push. 🚀
Features
- 🔥 It brings the dev-dependency concept to the .NET world!
- 🔥 Internal task runner!
- 🔥 Supports all Git & gitflow hooks
- Multiple file states (staged, last-commit, git-files, etc...)
- CSharp scripts (csx)
- Supports macOS, Linux and Windows
- Powered by modern new Git feature (core.hooksPath)
- User-define variables
- Compatible with dotnet-format, CSharpier, ReSharper command line tools and other formatting tools
- User-friendly messages
- Git GUIs
- Custom directories
- Monorepo
Documentation
Support
- Don't forget to give a ⭐ on GitHub
- Share your feedback and ideas to improve this tool
- Share Husky.Net on your favorite social media and your friends
- Write a blog post about Husky.Net
Articles / Examples
- Pre-commit hooks with Husky.NET - build, format, and test your .NET application before a Git commit
- Automatically version and release .Net Application by @antosubash
- <span dir="rtl" align="right">چرا باید از Git Hooks استفاده کنیم؟ معرفی Husky.Net</span>
- Comming soon
Contribution
Feel free to send me a pull request!
Check out the Contribution Page
Contributors
Thank you to everyone who has contributed to the Huskt.Net codebase. We appreciate you!
<a href="https://github.com/alirezanet/Husky.Net/graphs/contributors"> <img src="https://contrib.rocks/image?repo=alirezanet/Husky.Net" /> </a>
Credits
- This tool inspired of husky & lint-staged and a few other tools, for DotNet, so make sure to support them too!
License
| Product | Versions 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 is compatible. 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. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.1 | 1,265 | 3/13/2026 |
| 0.9.0 | 4,923 | 3/11/2026 |
| 0.8.0 | 498,231 | 11/12/2025 |
| 0.7.2 | 2,328,780 | 12/6/2024 |
| 0.7.1 | 638,284 | 8/13/2024 |
| 0.7.0 | 603,456 | 6/16/2024 |
| 0.6.5 | 146,684 | 5/10/2024 |
| 0.6.4 | 845,825 | 12/17/2023 |
| 0.6.3 | 226,714 | 11/16/2023 |
| 0.6.2 | 260,528 | 9/19/2023 |
| 0.6.1 | 59,554 | 9/2/2023 |
| 0.6.1-test1 | 904 | 9/19/2023 |
| 0.6.0 | 22,766 | 8/29/2023 |
| 0.6.0-Preview4 | 1,154 | 6/8/2023 |
| 0.6.0-Preview2 | 1,167 | 4/17/2023 |
| 0.6.0-Preview1 | 1,294 | 2/26/2023 |
| 0.5.4 | 583,193 | 1/7/2023 |
| 0.5.4-preview2 | 1,276 | 1/7/2023 |
| 0.5.4-preview1 | 15,689 | 12/2/2022 |