mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-05-02 21:39:16 -05:00
fix dotnet hooks with prefixes
This commit is contained in:
committed by
Anthony Sottile
parent
d7b8b123e6
commit
e904628830
@@ -0,0 +1,3 @@
|
||||
bin/
|
||||
obj/
|
||||
nupkg/
|
||||
@@ -0,0 +1,5 @@
|
||||
- id: dotnet-example-hook
|
||||
name: dotnet example hook
|
||||
entry: testeroni.tool
|
||||
language: dotnet
|
||||
files: ''
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace dotnet_hooks_repo
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello from dotnet!");
|
||||
}
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<PackAsTool>true</PackAsTool>
|
||||
<ToolCommandName>testeroni.tool</ToolCommandName>
|
||||
<PackageOutputPath>./nupkg</PackageOutputPath>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user