Skip to content

Commit

Permalink
feat(build): Add package info files and icon
Browse files Browse the repository at this point in the history
This commit adds the necessary package information files, including the LICENSE file and icon.png. The README.md file is also imported at the build props level if it doesn't exist in the project.
  • Loading branch information
SakuraIsayeki committed Jul 16, 2024
1 parent a8b50ff commit 5f3e8e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@
<GitVersionBaseDirectory>$(MSBuildThisFileDirectory)</GitVersionBaseDirectory>
</PropertyGroup>

<ItemGroup Condition="exists('LICENSE')">
<None Include="LICENSE" Pack="true" PackagePath=""/>
<ItemGroup Label="PackageInfoFiles">
<!-- Import the Readme at build props level if there is none in the project -->

<!-- <None Condition="!Exists('README.md')" Include="$(_DirectoryBuildPropsBasePath)\README.md" Pack="true" PackagePath="/" />-->
<None Include="$(MSBuildThisFileDirectory)\LICENSE" Pack="true" PackagePath="/" />
<None Include="$(MSBuildThisFileDirectory)\icon.png" Pack="true" PackagePath="/" />
</ItemGroup>

<ItemGroup>
Expand Down
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5f3e8e7

Please sign in to comment.