Skip to content

Commit

Permalink
Package as dotnet tool
Browse files Browse the repository at this point in the history
  • Loading branch information
timabell committed Jan 7, 2024
1 parent 889af36 commit 8477e19
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh -v
set -e
git clean -xfd
dotnet pack
dotnet nuget push src/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key="$apikey"
1 change: 1 addition & 0 deletions sln-items-sync.sln
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionIt
.editorconfig = .editorconfig
README.md = README.md
run.sh = run.sh
publish.sh = publish.sh
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{50259428-AA36-4437-AF08-F1B4DFE0D580}"
Expand Down
11 changes: 10 additions & 1 deletion src/sln-items-sync.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@
<RootNamespace>sln_items_sync</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishSingleFile>true</PublishSingleFile>
<PublishSingleFile>false</PublishSingleFile>
<SelfContained>false</SelfContained>
<PackAsTool>true</PackAsTool>
<ToolCommandName>sln-items-sync</ToolCommandName>
<Company>Tim Abell</Company>
<Product>sln-items-sync</Product>
<Version>1.0.0</Version>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="SlnEditor" Version="6.1.0" />
Expand Down

0 comments on commit 8477e19

Please sign in to comment.