From 67a3e90395930dc3b938d877383536b743ff5456 Mon Sep 17 00:00:00 2001 From: Marcel K Date: Thu, 24 Aug 2017 10:44:54 +0200 Subject: [PATCH] Added troubleshooting with missing namespaces --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c8ed94..11519b8 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,18 @@ ToastRequest class is a container of information necessary for installing a shor | ActivatorId | AppUserModelToastActivatorCLSID of application (for Action Center of Windows 10) | Optional | | WaitingDuration | Waiting duration before showing a toast after the shortcut file is installed | Optional | +## Troubleshooting + +### Windows.Data namespace or Windows.UI namespace not available + +In this case you have to edit the `DesktopToast/DesktopToast.csproj` file and change the value of the target platform. +Replace `8.0` in this line +```xml +8.0 +``` +with your local installed version. You can find your installed version here (name of the folder) `C:\Program Files (x86)\Windows Kits\10\Include` +After this you add a reference to `Windows.Data`, `Windows.Foundation` and `Windows.UI` in the references tab under `Windows` + ## Action Center of Windows 10 To interact with Action Center of Windows 10, an application needs to register COM class type which implements [INotificationActivationCallback][1]. In addition, the registration of COM server in the registry is required for an application to be started by COM when it is not running. @@ -86,4 +98,4 @@ You can compose it from scratch or utilize [NotificationsExtensions.Win10][4] li [1]: https://msdn.microsoft.com/en-us/library/windows/desktop/mt643711.aspx [2]: https://github.com/WindowsNotifications/desktop-toasts [3]: https://blogs.msdn.microsoft.com/tiles_and_toasts/2015/07/02/adaptive-and-interactive-toast-notifications-for-windows-10/ -[4]: https://www.nuget.org/packages/NotificationsExtensions.Win10/ \ No newline at end of file +[4]: https://www.nuget.org/packages/NotificationsExtensions.Win10/