From 1bf1eacc7ac3920d52c8e7045bfa34abc7c05302 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Mon, 9 Oct 2023 18:43:25 -0300 Subject: [PATCH] Honor the PackReadme=false property This is defaulted to `true` in nugetizer, but we allow opt-out, so we should honor that too. --- src/Directory.Build.props | 4 ++-- src/Directory.Build.targets | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 6b9a668..4527560 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -26,10 +26,10 @@ icon.png - readme.md + readme.md icon.png - readme.md + readme.md true true diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index 248c2b7..0cb1e4e 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -35,7 +35,7 @@ + Condition="'$(PackReadme)' != 'false' and '$(PackageReadmeFile)' != ''" /> + Condition="'$(PackReadme)' != 'false' and Exists('$(MSBuildThisFileDirectory)readme.md') and !Exists('$(MSBuildProjectDirectory)\readme.md')" />