|
63 | 63 | <NoneUpdate="@(None -> WithMetadataValue('Filename', 'icon'))" |
64 | 64 | Pack="true"PackagePath="%(Filename)%(Extension)" |
65 | 65 | CopyToOutputDirectory="Never" |
66 | | -Condition="'$(PackageIcon)' != ''" /> |
| 66 | +Condition="'$(PackageIcon)' == 'icon.png'" /> |
| 67 | + |
| 68 | + <NoneUpdate="@(None -> WithMetadataValue('Filename', 'logo'))" |
| 69 | +Pack="true"PackagePath="%(Filename)%(Extension)" |
| 70 | +CopyToOutputDirectory="Never" |
| 71 | +Condition="'$(PackageIcon)' == 'logo.png'" /> |
67 | 72 |
|
68 | 73 | <NoneUpdate="@(None -> WithMetadataValue('Filename', 'readme'))" |
69 | 74 | Pack="true"PackagePath="%(Filename)%(Extension)" |
70 | 75 | CopyToOutputDirectory="Never" |
71 | 76 | Condition="'$(PackReadme)' != 'false' and '$(PackageReadmeFile)' != ''" /> |
72 | 77 |
|
73 | 78 | <!-- src-level will need explicit inclusion --> |
74 | | - <NoneInclude="$(MSBuildThisFileDirectory)icon.png"Link="icon.png"Visible="false" |
75 | | -Pack="true"PackagePath="%(Filename)%(Extension)" |
| 79 | + <NoneInclude="$(MSBuildThisFileDirectory)$(PackageIcon)"Link="$(PackageIcon)"Visible="false" |
| 80 | +Pack="true"PackagePath="$(PackageIcon)" |
76 | 81 | CopyToOutputDirectory="Never" |
77 | | -Condition="Exists('$(MSBuildThisFileDirectory)icon.png') and !Exists('$(MSBuildProjectDirectory)\icon.png')" /> |
| 82 | +Condition="'$(PackageIcon)' != '' and Exists('$(MSBuildThisFileDirectory)$(PackageIcon)') and !Exists('$(MSBuildProjectDirectory)\$(PackageIcon)')" /> |
78 | 83 |
|
79 | 84 | <NoneInclude="$(MSBuildThisFileDirectory)readme.md"Link="readme.md" |
80 | 85 | Pack="true"PackagePath="%(Filename)%(Extension)" |
|
0 commit comments