Skip to content

Commit a2c2c92

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 a7f0b49 commit a2c2c92

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<license type="expression">MIT</license>
99
<projectUrl>https://github.com/CommunityToolkit/WindowsCommunityToolkit</projectUrl>
1010
<iconUrl>https://raw.githubusercontent.com/CommunityToolkit/WindowsCommunityToolkit/main/build/nuget.png</iconUrl>
11-
<icon>images\nuget.png</icon>
11+
<icon>Icon.png</icon>
1212
<description>The official way to send toast notifications on Windows 10 via code rather than XML, with the help of IntelliSense. Supports all C# app types, including WPF, UWP, WinForms, and Console, even without packaging your app as MSIX. Also supports C++ UWP apps.
1313

1414
Additionally, generate notification payloads from your ASP.NET web server to send as push notifications, or generate notification payloads from class libraries.
@@ -52,7 +52,7 @@
5252
</dependencies>
5353
</metadata>
5454
<files>
55-
<file src="..\build\nuget.png" target="images\" />
55+
<file src="..\build\nuget.png" target="Icon.png" />
5656
<file src="..\license.md" target="" />
5757
<file src="Microsoft.Toolkit.Uwp.Notifications.targets" target="build\native\Microsoft.Toolkit.Uwp.Notifications.targets" />
5858
<file src="$buildOutput$\net461\Microsoft.Toolkit.Uwp.Notifications.dll" target="lib\net461\Microsoft.Toolkit.Uwp.Notifications.dll" />

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/CommunityToolkit/WindowsCommunityToolkit</PackageProjectUrl>
1212
<PackageReleaseNotes>https://github.com/CommunityToolkit/WindowsCommunityToolkit/releases</PackageReleaseNotes>
13-
<PackageIcon>nuget.png</PackageIcon>
13+
<PackageIcon>Icon.png</PackageIcon>
1414
<PackageIconUrl>https://raw.githubusercontent.com/CommunityToolkit/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)