Skip to content

Commit

Permalink
Add nuget packaging step and complete required metadata
Browse files Browse the repository at this point in the history
NB: The icon is still left to be provided
  • Loading branch information
DamienBraillard committed Jul 8, 2024
1 parent b244f9f commit 84b3c9a
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,7 @@ jobs:

- name: 😨 Test code
run: dotnet test --no-build
continue-on-error: true
continue-on-error: true

- name: 📦 Create NuGet package
run: dotnet pack --no-build --output .
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ tests/results/

# Compiled output
bin/
obj/
obj/
*.nupkg
Empty file added CHANGELOG.md
Empty file.
3 changes: 3 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<!-- Use embedded pdb to make sure we have file information and line numbers in stack traces even when
packaging as single file. See https://github.com/dotnet/runtime/issues/34187#issuecomment-604955845 -->
<DebugType>embedded</DebugType>

<!-- Embed all sources in the NuGet packages -->
<EmbedAllSources>true</EmbedAllSources>
</PropertyGroup>

<PropertyGroup Label="Assembly Info">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup Label="AOT" >
Expand Down
15 changes: 15 additions & 0 deletions src/Unicorn.LiveLogViewer/Unicorn.LiveLogViewer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@
<EnableRequestDelegateGenerator>true</EnableRequestDelegateGenerator>
</PropertyGroup>

<PropertyGroup Label="Packaging Metadata">
<!-- <PackageIcon>icon.png</PackageIcon>-->
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>logging logviewer aspnet</PackageTags>
<PackageProjectUrl>https://github.com/DamienBraillard/Unicorn.LiveLogViewer</PackageProjectUrl>
<PackageReleaseNotes>https://github.com/DamienBraillard/Unicorn.LiveLogViewer/blob/master/CHANGELOG.md</PackageReleaseNotes>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>

<ItemGroup Label="Packaging Metadata">
<!-- <None Include="../resources/$(PackageIcon)" Pack="true" PackagePath="" Visible="false" />-->
<None Include="../../$(PackageReadmeFile)" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
Expand Down

0 comments on commit 84b3c9a

Please sign in to comment.