DotnetHooks 1.0.0

dotnet add package DotnetHooks --version 1.0.0
NuGet\Install-Package DotnetHooks -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DotnetHooks" Version="1.0.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotnetHooks --version 1.0.0
#r "nuget: DotnetHooks, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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>
There are no supported framework assets in this package.

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 155,275 2/2/2020