From c64574ba30aa29c6156790a68fcd4bb64d3156a8 Mon Sep 17 00:00:00 2001 From: Andrew Leader Date: Fri, 18 Dec 2020 14:26:23 -0800 Subject: [PATCH 1/3] Making package works but throws at runtime --- ...Microsoft.Toolkit.Uwp.Notifications.csproj | 13 ++- ...Microsoft.Toolkit.Uwp.Notifications.nuspec | 80 +++++++++++++++++++ 2 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.nuspec diff --git a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj index f58d2721c1d..f8121bbb1f9 100644 --- a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj +++ b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj @@ -3,7 +3,7 @@ - netstandard1.4;uap10.0.19041;net461;netcoreapp3.1;net5.0;net5.0-windows10.0.17763.0 + netstandard1.4;uap10.0.19041;net461;netcoreapp3.1;net5.0;net5.0-windows10.0.17763.0;native $(DefineConstants);NETFX_CORE Windows Community Toolkit Notifications @@ -17,6 +17,7 @@ true 10240 10.0.10240.0 + Microsoft.Toolkit.Uwp.Notifications.nuspec @@ -64,8 +65,7 @@ native UAP,Version=v10.0 uap10.0 - 10.0.19041.0 - 10.0.10240.0 + 10.0.19041.0 $(DefineConstants);NETFX_CORE;WINDOWS_UWP;WINRT false .NETCore @@ -77,5 +77,12 @@ UAP$(TargetPlatformMinVersion.Replace('.', '_')) true + + + + + buildOutput=bin\$(Configuration);version=$(Version) + + diff --git a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.nuspec b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.nuspec new file mode 100644 index 00000000000..841b809e4bf --- /dev/null +++ b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.nuspec @@ -0,0 +1,80 @@ + + + + Microsoft.Toolkit.Uwp.Notifications + $version$ + Windows Community Toolkit Notifications + Microsoft.Toolkit + + true + https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/master/license.md + https://github.com/windows-toolkit/WindowsCommunityToolkit + https://raw.githubusercontent.com/windows-toolkit/WindowsCommunityToolkit/master/build/nuget.png + Generate tile, toast, and badge notifications for Windows 10 via code, with the help of IntelliSense. + Adds Support for adaptive tiles and adaptive/interactive toasts for Windows 10. It is part of the Windows Community Toolkit. + Supports C# and C++ UWP project types. + Also works with C# portable class libraries and non-UWP C# projects like server projects. + This project contains outputs for netstandard1.4, uap10.0 and native for WinRT. + https://github.com/windows-toolkit/WindowsCommunityToolkit/releases + (c) .NET Foundation and Contributors. All rights reserved. + notifications win10 windows 10 tile tiles toast toasts badge xml uwp c# csharp c++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From c29ff4d4d448119eac589d646d6eaaf1dc1813ef Mon Sep 17 00:00:00 2001 From: Andrew Leader Date: Mon, 21 Dec 2020 15:36:22 -0800 Subject: [PATCH 2/3] I think it all works! --- Directory.Build.targets | 2 +- .../Microsoft.Toolkit.Uwp.Notifications.csproj | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index ab132c6cf4c..4423ad40f2f 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,7 +1,7 @@ - true + true diff --git a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj index f8121bbb1f9..eb6bd47a381 100644 --- a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj +++ b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj @@ -56,6 +56,10 @@ + + + 10.0.19041.0 + winmdobj From f3d87d897ad6e3423d6848272129aade754017a8 Mon Sep 17 00:00:00 2001 From: Andrew Leader Date: Mon, 21 Dec 2020 18:27:27 -0800 Subject: [PATCH 3/3] Remove comment and update description --- .../Microsoft.Toolkit.Uwp.Notifications.csproj | 10 ---------- .../Microsoft.Toolkit.Uwp.Notifications.nuspec | 12 ++++++------ 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj index eb6bd47a381..2a456cf9275 100644 --- a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj +++ b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj @@ -1,19 +1,9 @@  - - netstandard1.4;uap10.0.19041;net461;netcoreapp3.1;net5.0;net5.0-windows10.0.17763.0;native $(DefineConstants);NETFX_CORE Windows Community Toolkit Notifications - - Generate tile, toast, and badge notifications for Windows 10 via code, with the help of IntelliSense. - Adds Support for adaptive tiles and adaptive/interactive toasts for Windows 10. It is part of the Windows Community Toolkit. - Supports C# and C++ UWP project types. - Also works with C# portable class libraries and non-UWP C# projects like server projects. - This project contains outputs for netstandard1.4, uap10.0 and native for WinRT. - - notifications win10 windows 10 tile tiles toast toasts badge xml uwp c# csharp c++ true 10240 10.0.10240.0 diff --git a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.nuspec b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.nuspec index 841b809e4bf..eae33f7a3dc 100644 --- a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.nuspec +++ b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.nuspec @@ -10,14 +10,14 @@ https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/master/license.md https://github.com/windows-toolkit/WindowsCommunityToolkit https://raw.githubusercontent.com/windows-toolkit/WindowsCommunityToolkit/master/build/nuget.png - Generate tile, toast, and badge notifications for Windows 10 via code, with the help of IntelliSense. - Adds Support for adaptive tiles and adaptive/interactive toasts for Windows 10. It is part of the Windows Community Toolkit. - Supports C# and C++ UWP project types. - Also works with C# portable class libraries and non-UWP C# projects like server projects. - This project contains outputs for netstandard1.4, uap10.0 and native for WinRT. + The official way to send toast notifications on Windows 10 via code rather than XML, with the help of IntelliSense. Supported by all C# app types, including WPF, UWP, WinForms, and Console, even without packaging your app as MSIX. Also supported by C++ UWP apps. + + Additionally, generate notification payloads from your ASP.NET web server to send as push notifications, or generate notification payloads from class libraries. + + For UWP/MSIX apps, you can also generate tile and badge notifications. https://github.com/windows-toolkit/WindowsCommunityToolkit/releases (c) .NET Foundation and Contributors. All rights reserved. - notifications win10 windows 10 tile tiles toast toasts badge xml uwp c# csharp c++ + notifications win10 windows 10 tile tiles toast toasts badge xml uwp c# csharp c++ wpf winforms