Allow installation as dotnet tool

This commit is contained in:
Marcello 2022-05-25 18:20:53 +02:00
parent 26e5404c1a
commit 2e9d49768d
2 changed files with 4 additions and 0 deletions

2
dotnet-install-tool.ps1 Normal file
View file

@ -0,0 +1,2 @@
dotnet pack ./src -o ./nupkg
dotnet tool install -g ScriptLauncher --add-source ./nupkg --ignore-failed-sources

View file

@ -6,6 +6,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.1.0</Version>
<PackAsTool>true</PackAsTool>
<ToolCommandName>script-launcher</ToolCommandName>
</PropertyGroup>
<ItemGroup>