Skip to content

Added troubleshooting for missing namespaces #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<TargetPlatformVersion>8.0</TargetPlatformVersion>
```
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.
Expand All @@ -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/
[4]: https://www.nuget.org/packages/NotificationsExtensions.Win10/