Skip to content

Commit a531b4c

Browse files
committed
Rename Package Icon file only when packing
Every "official" .NET packages use 'Icon' as its file name. Since, the icon file itself is public and older packages refer them by URL, we only change the file name during packaging which would be in the package.
1 parent 1a3f645 commit a531b4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/Windows.Toolkit.Common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<Copyright>(c) .NET Foundation and Contributors. All rights reserved.</Copyright>
1111
<PackageProjectUrl>https://github.com/windows-toolkit/WindowsCommunityToolkit</PackageProjectUrl>
1212
<PackageReleaseNotes>https://github.com/windows-toolkit/WindowsCommunityToolkit/releases</PackageReleaseNotes>
13-
<PackageIcon>nuget.png</PackageIcon>
13+
<PackageIcon>Icon.png</PackageIcon>
1414
<PackageIconUrl>https://raw.githubusercontent.com/windows-toolkit/WindowsCommunityToolkit/master/build/nuget.png</PackageIconUrl>
1515
</PropertyGroup>
1616

build/Windows.Toolkit.Common.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup Condition="$(IsPackable)">
16-
<None Include="$(BuildToolsDirectory)nuget.png" Pack="true" PackagePath="\" />
16+
<None Include="$(BuildToolsDirectory)nuget.png" Pack="true" PackagePath="\Icon.png" />
1717
<None Include="$(RepositoryDirectory)License.md" Pack="true" PackagePath="\" />
1818
</ItemGroup>
1919

0 commit comments

Comments
 (0)