Skip to content

Commit 81bb9f9

Browse files
committed
ReadmeFile
1 parent 55876be commit 81bb9f9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Directory.Build.props

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@
1313
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1414
<RepositoryUrl>https://github.com/kerryjiang/EtradeMcpNet.git</RepositoryUrl>
1515
</PropertyGroup>
16-
<PropertyGroup Condition="'$(IncludeReleaseNotes)' == 'true'">
16+
<PropertyGroup Condition="'exists('../../releaseNotes/v$(PackageVersion).md')">
17+
<ReadmeFile>../../releaseNotes/v$(PackageVersion).md</ReadmeFile>
18+
</PropertyGroup>
19+
<PropertyGroup Condition="'$(IncludeReleaseNotes)' == 'true' and ReadmeFile != ''">
1720
<PackageReadmeFile>v$(PackageVersion).md</PackageReadmeFile>
1821
</PropertyGroup>
19-
<ItemGroup Condition="'$(IncludeReleaseNotes)' == 'true'">
20-
<None Include="../../releaseNotes/v$(PackageVersion).md" Pack="true" PackagePath="/" />
22+
<ItemGroup Condition="'$(IncludeReleaseNotes)' == 'true' and ReadmeFile != ''">
23+
<None Include="$(ReadmeFile)" Pack="true" PackagePath="/" />
2124
</ItemGroup>
22-
</Project>
25+
</Project>

0 commit comments

Comments
 (0)