Closed MichaelCharles closed 1 year ago
Hi @mcaubrey, I think You have checked out the Csharper library documentation and it might not be up-to-date, try Husky.Net documentation.
you missed the first important step in installation which is cd <Your project/solution root directory>
.
also for attaching husky to your project the recommended way is use the attach
command, more info here.
Husky will install in your repository, not your project, so you must install it from your parent folder.
I think you forgot to remove or update the dotnet format task.
{
"tasks": [
{
"name": "dotnet-format-example",
"command": "dotnet",
"args": [ "dotnet-format", "--include", "${staged}" ],
"include": [ "**/*.cs", "**/*.vb" ]
}, ....
Version
v0.5.2
Details
In my project we have a parent folder,
project
and then a child folderProject.Api
that houses the actual C# project files.I can install the tool as described in the documentation but when I run
dotnet husky install
from theProject.Api
folder I get the following output.The
.git
folder is in the parentproject
folder, so I guess that makes sense. If I change directories to the parent folder and try running it again, I get,I attempted to install Husky globally and see if that eliminates this problem, but the output was the same afterwards.
I realize this might not be a bug and it might just be me using it in a way that was not intended. Any direction in how I could resolve this would be helpful.
Steps to reproduce