fix dotnet hooks with prefixes

This commit is contained in:
Ruairidh MacLeod 2022-12-06 12:04:19 +00:00 committed by Anthony Sottile
parent d7b8b123e6
commit e904628830
6 changed files with 57 additions and 5 deletions

View file

@ -0,0 +1,3 @@
bin/
obj/
nupkg/

View file

@ -0,0 +1,5 @@
- id: dotnet-example-hook
name: dotnet example hook
entry: testeroni.tool
language: dotnet
files: ''

View file

@ -0,0 +1,12 @@
using System;
namespace dotnet_hooks_repo
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello from dotnet!");
}
}
}

View file

@ -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>