Skip to content

Commit

Permalink
Add PackageReadmeFile element to Directory.Build.props
Browse files Browse the repository at this point in the history
Added a PackageReadmeFile element to the Directory.Build.props file to ensure the readme.md file is included in the generated NuGet package. Also modified the packaging path for the readme.md to align with the new PackageReadmeFile specification. This change will help package users to better understand the package functionality.
  • Loading branch information
frankhaugen committed Aug 8, 2023
1 parent 319b85c commit dcba8d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<InvariantGlobalization>true</InvariantGlobalization>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

<PackageReadmeFile>readme.md</PackageReadmeFile>
<RepositoryType>Git</RepositoryType>
<RepositoryUrl>https://github.com/frankhaugen/Frank.Libraries</RepositoryUrl>
<PackageProjectUrl>https://github.com/frankhaugen/Frank.Libraries</PackageProjectUrl>
Expand All @@ -30,7 +31,7 @@
</None>
<None Include="readme.md" Condition="Exists('readme.md')">
<Pack>True</Pack>
<PackagePath>readme.md</PackagePath>
<PackagePath>\</PackagePath>
</None>

</ItemGroup>
Expand Down

0 comments on commit dcba8d2

Please sign in to comment.