Skip to content

Commit ff0ccd5

Browse files
committed
Add custom icon to NuGet package metadata
Enhanced the NuGet package by specifying `icon.png` as the package icon. - Added `<PackageIcon>` element in `Hexa.NET.ZLib.csproj` to reference `icon.png`. - Included `icon.png` in the `<ItemGroup>` to ensure it is packed and placed in the root of the NuGet package. These changes improve the package's visual identity in NuGet package managers.
1 parent 488831f commit ff0ccd5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Hexa.NET.ZLib/Hexa.NET.ZLib.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<RepositoryType>git</RepositoryType>
2525
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
2626
<PackageReadmeFile>README.md</PackageReadmeFile>
27+
<PackageIcon>icon.png</PackageIcon>
2728

2829
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2930
<NoWarn>$(NoWarn);1591</NoWarn>
@@ -95,6 +96,7 @@
9596
<ItemGroup>
9697
<Content Include="../LICENSE.txt" Pack="true" PackagePath="\" />
9798
<Content Include="../README.md" Pack="true" PackagePath="\" />
99+
<Content Include="../icon.png" Pack="true" PackagePath="\" />
98100
</ItemGroup>
99101

100102
</Project>

icon.png

201 KB
Loading

0 commit comments

Comments
 (0)