DotnetHooks 1.0.0
dotnet add package DotnetHooks --version 1.0.0
NuGet\Install-Package DotnetHooks -Version 1.0.0
<PackageReference Include="DotnetHooks" Version="1.0.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add DotnetHooks --version 1.0.0
#r "nuget: DotnetHooks, 1.0.0"
// Install DotnetHooks as a Cake Addin #addin nuget:?package=DotnetHooks&version=1.0.0 // Install DotnetHooks as a Cake Tool #tool nuget:?package=DotnetHooks&version=1.0.0
DotnetHooks
This project has only one goal, execute the following command: git config core.hooksPath hooks
when the restore command is executed. In that's way you could enforce policy on you project when executing basic Git command.
For more information about git hooks please read this article
Installation
In order to use this package you will only need to install this package from command line :
dotnet add package DotnetHooks
After this you can customize the path of the hooks folder by specifing HooksPath
variable. By default it's set to hooks
which means the folder will be relative to the .git
folder. For example :
- .git
- hooks/
- commit-msg
- src/
- MyProject/
- MyProject.csproj
- MyProject.sln
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<HooksPath>custom_hooks</HooksPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DotnetHooks" Version="1.0.0" IncludeAssets="build" />
</ItemGroup>
</Project>
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on DotnetHooks:
Repository | Stars |
---|---|
aws/porting-assistant-dotnet-client
The 'Porting Assistant for .NET' is a standalone compatibility analyzer that helps customers to port their .NET Framework (β.NETβ) applications to .NET Core on Linux.
|
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 177,869 | 2/2/2020 |