Skip to content

Commit

Permalink
feat: pack release notes into nuget packages
Browse files Browse the repository at this point in the history
  • Loading branch information
biohazard999 committed Dec 14, 2022
1 parent a27f0b2 commit f707ea6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Directory.Build.props
Expand Up @@ -16,4 +16,13 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>

<Target Name="PreparePackageReleaseNotesFromFile" BeforeTargets="GenerateNuspec">
<ReadLinesFromFile File="$(MSBuildThisFileDirectory)CHANGELOG.md" >
<Output TaskParameter="Lines" ItemName="ReleaseNoteLines"/>
</ReadLinesFromFile>
<PropertyGroup>
<PackageReleaseNotes>@(ReleaseNoteLines, '%0a')</PackageReleaseNotes>
</PropertyGroup>
</Target>

</Project>
2 changes: 2 additions & 0 deletions Xenial.RTool.sln
Expand Up @@ -14,10 +14,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.editorconfig = .editorconfig
.gitattributes = .gitattributes
.gitignore = .gitignore
.r-tool.json = .r-tool.json
b.bat = b.bat
build.bat = build.bat
build.ps1 = build.ps1
build.sh = build.sh
CHANGELOG.md = CHANGELOG.md
Directory.Build.props = Directory.Build.props
README.md = README.md
EndProjectSection
Expand Down

0 comments on commit f707ea6

Please sign in to comment.