Skip to content

Commit 15140a6

Browse files
committed
Add package title to Readme
1 parent 1b8ee5c commit 15140a6

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

src/Directory.Build.props

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
</PropertyGroup>
1717

1818
<ItemGroup Condition=" $(IsPackable) ">
19-
<None Include="$(MSBuildThisFileDirectory)ReadMe.md"
20-
Visible="False"
21-
Pack="True"
22-
PackagePath="" />
2319
<None Include="$(PrismPackageIcon)"
2420
Visible="False"
2521
Pack="True"

src/Directory.Build.targets

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Project>
2+
<Import Project="..\Directory.Build.targets" />
3+
4+
<Target Name="CopyNuGetReadme"
5+
BeforeTargets="_GetPackageFiles"
6+
Condition=" $(IsPackable) == 'true' ">
7+
<Exec Command="echo # $(PackageId) > $(IntermediateOutputPath)\readme.txt"
8+
ConsoleToMsBuild="true" />
9+
10+
<Exec Command="type $(MSBuildThisFileDirectory)ReadMe.md >> $(IntermediateOutputPath)\readme.txt"
11+
ConsoleToMsBuild="true" />
12+
</Target>
13+
14+
<Target Name="PackNuGetReadMe"
15+
AfterTargets="CopyNuGetReadme">
16+
<ItemGroup>
17+
<_PackageFiles Include="$(IntermediateOutputPath)\readme.txt" PackagePath="" />
18+
</ItemGroup>
19+
</Target>
20+
</Project>

src/ReadMe.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Thank you for installing Prism 8.1!
23

34
## Help Support Prism

0 commit comments

Comments
 (0)