Skip to content

Commit 30e9465

Browse files
authored
fix: Disable README, if needed (#79)
1 parent 7d769b3 commit 30e9465

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/NetEvolve.Defaults/build/SupportPackageInformation.targets

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<SymbolPackageFormat Condition=" '$(SymbolPackageFormat)' == '' ">snupkg</SymbolPackageFormat>
1212

1313
<PackageLicenseExpression Condition=" '$(PackageLicenseExpression)' == '' and '$(PackageLicenseFile)' == '' ">MIT</PackageLicenseExpression>
14-
<PackageReadmeFile Condition=" '$(PackageReadmeFile)' == '' ">README.md</PackageReadmeFile>
14+
<PackageReadmeFile Condition="'$(DisableReadme)' != 'true' and '$(PackageReadmeFile)' == '' ">README.md</PackageReadmeFile>
1515
<PackageIcon Condition="'$(DisablePackageLogo)' != 'true' and '$(PackageIcon)' == '' ">logo.png</PackageIcon>
1616

1717
<PublishRepositoryUrl Condition=" '$(PublishRepositoryUrl)' == '' ">true</PublishRepositoryUrl>
@@ -31,8 +31,8 @@
3131

3232
<_ProjectReadme Include="$(ProjectDir)README.md" Condition="Exists('$(ProjectDir)README.md')" />
3333
<_SolutionReadme Include="$(SolutionDir)README.md" Condition="@(_ProjectReadme) == '' and Exists('$(SolutionDir)README.md')" />
34-
<None Include="@(_ProjectReadme)" Pack="true" PackagePath="" Visible="true" Condition="Exists(@(_ProjectReadme))" />
35-
<None Include="@(_SolutionReadme)" Pack="true" PackagePath="" Visible="false" Condition="!Exists(@(_ProjectReadme)) and Exists(@(_SolutionReadme))" />
34+
<None Include="@(_ProjectReadme)" Pack="true" PackagePath="" Visible="true" Condition="'$(DisableReadme)' != 'true' and Exists(@(_ProjectReadme))" />
35+
<None Include="@(_SolutionReadme)" Pack="true" PackagePath="" Visible="false" Condition="'$(DisableReadme)' != 'true' and !Exists(@(_ProjectReadme)) and Exists(@(_SolutionReadme))" />
3636

3737
<_ProjectLogo Include="$(ProjectDir)logo.png" Condition="Exists('$(ProjectDir)logo.png')" />
3838
<_SolutionLogo Include="$(SolutionDir)logo.png" Condition="@(_ProjectLogo) == '' and Exists('$(SolutionDir)logo.png')" />

0 commit comments

Comments
 (0)