Skip to content

Commit

Permalink
Add package title to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed May 23, 2021
1 parent 1b8ee5c commit 15140a6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
</PropertyGroup>

<ItemGroup Condition=" $(IsPackable) ">
<None Include="$(MSBuildThisFileDirectory)ReadMe.md"
Visible="False"
Pack="True"
PackagePath="" />
<None Include="$(PrismPackageIcon)"
Visible="False"
Pack="True"
Expand Down
20 changes: 20 additions & 0 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<Project>
<Import Project="..\Directory.Build.targets" />

<Target Name="CopyNuGetReadme"
BeforeTargets="_GetPackageFiles"
Condition=" $(IsPackable) == 'true' ">
<Exec Command="echo # $(PackageId) > $(IntermediateOutputPath)\readme.txt"
ConsoleToMsBuild="true" />

<Exec Command="type $(MSBuildThisFileDirectory)ReadMe.md >> $(IntermediateOutputPath)\readme.txt"
ConsoleToMsBuild="true" />
</Target>

<Target Name="PackNuGetReadMe"
AfterTargets="CopyNuGetReadme">
<ItemGroup>
<_PackageFiles Include="$(IntermediateOutputPath)\readme.txt" PackagePath="" />
</ItemGroup>
</Target>
</Project>
1 change: 1 addition & 0 deletions src/ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Thank you for installing Prism 8.1!

## Help Support Prism
Expand Down

0 comments on commit 15140a6

Please sign in to comment.