Skip to content

Commit 83984d5

Browse files
Add new license/icon properties to our NuGet config
Based on @Kyaa-dost's initial investigation Keeping old and new formats as not all clients support the new formats in all scenarios yet.
1 parent efaaf1b commit 83984d5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
66
<NoPackageAnalysis>true</NoPackageAnalysis>
77
<PackageIconUrl>https://raw.githubusercontent.com/windows-toolkit/WindowsCommunityToolkit/master/build/nuget.png</PackageIconUrl>
8+
<PackageIcon>images\nuget.png</PackageIcon>
89
<PackageProjectUrl>https://github.com/windows-toolkit/WindowsCommunityToolkit</PackageProjectUrl>
910
<PackageLicenseUrl>https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/master/license.md</PackageLicenseUrl>
11+
<PackageLicenseFile>license.md</PackageLicenseFile>
1012
<PackageReleaseNotes>https://github.com/windows-toolkit/WindowsCommunityToolkit/releases</PackageReleaseNotes>
1113
<Copyright>(c) .NET Foundation and Contributors. All rights reserved.</Copyright>
1214
<DefaultLanguage>en-US</DefaultLanguage>
@@ -102,6 +104,8 @@
102104
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json">
103105
<Link>stylecop.json</Link>
104106
</AdditionalFiles>
107+
<None Include="$(MSBuildThisFileDirectory)license.md" Pack="true" PackagePath="\"/>
108+
<None Include="$(MSBuildThisFileDirectory)build\nuget.png" Pack="true" PackagePath="images\"/>
105109
</ItemGroup>
106110

107111
<Import Project="$(MSBuildThisFileDirectory)build\Windows.Toolkit.VisualStudio.Design.props" Condition="'$(IsDesignProject)' == 'true'"/>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
<authors>Microsoft.Toolkit,dotnetfoundation</authors>
88
<requireLicenseAcceptance>true</requireLicenseAcceptance>
99
<licenseUrl>https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/master/license.md</licenseUrl>
10+
<license type="file">license.md</license>
1011
<projectUrl>https://github.com/windows-toolkit/WindowsCommunityToolkit</projectUrl>
1112
<iconUrl>https://raw.githubusercontent.com/windows-toolkit/WindowsCommunityToolkit/master/build/nuget.png</iconUrl>
13+
<icon>images\nuget.png</icon>
1214
<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.
1315

1416
Additionally, generate notification payloads from your ASP.NET web server to send as push notifications, or generate notification payloads from class libraries.
@@ -52,6 +54,8 @@
5254
</dependencies>
5355
</metadata>
5456
<files>
57+
<file src="..\build\nuget.png" target="images\" />
58+
<file src="..\license.md" target="" />
5559
<file src="Microsoft.Toolkit.Uwp.Notifications.targets" target="build\native\Microsoft.Toolkit.Uwp.Notifications.targets" />
5660
<file src="$buildOutput$\net461\Microsoft.Toolkit.Uwp.Notifications.dll" target="lib\net461\Microsoft.Toolkit.Uwp.Notifications.dll" />
5761
<file src="$buildOutput$\net461\Microsoft.Toolkit.Uwp.Notifications.pdb" target="lib\net461\Microsoft.Toolkit.Uwp.Notifications.pdb" />

0 commit comments

Comments
 (0)