Allow installation as dotnet tool

This commit is contained in:
Marcello 2022-05-25 18:20:53 +02:00
parent 150685acee
commit a4fe1ba84a
Signed by: m-lamonaca
SSH key fingerprint: SHA256:8db8uii6Gweq7TbKixFBioW2T8CbgtyFETyYL3cr3zk
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>