-
Notifications
You must be signed in to change notification settings - Fork 406
Open
Labels
area-NotificationsToast notification, badges, Live Tiles, push notificationsToast notification, badges, Live Tiles, push notificationsneeds-triage
Description
Describe the bug
AppNotificationManager.Default.NotificationInvoked += NotificationInvoked;
AppNotificationManager.Default.Register();Register() throws an Exception:
System.Runtime.InteropServices.COMException: 'The specified module could not be found.
Unable to load resource dll. Microsoft.WindowsAppRuntime.Insights.Resource.dll'
in Self-Contained app.
Steps to reproduce the bug
- Create Unpackaged Self-Contained App with Microsoft.WindowsAppSDK.WinUI installed only. Don't use metapackage.
- Execute AppNotification callback registration on startup
Expected behavior
Callback registration success without installing Runtime package for Self-Contained app.
Screenshots
No response
NuGet package version
Windows App SDK 1.8.3
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.7175" />
<PackageReference Include="Microsoft.WindowsAppSDK.WinUI" Version="1.8.251105000" />Packaging type
Unpackaged
Windows version
Windows 11 version 24H2 (26100, June 2025 Update)
IDE
Visual Studio 2026
(please update Bug template here in GitHub, add VS 2026 there to the droptown selector)
Additional context
If I install Microsoft.WindowsAppSDK.Runtime package, then it works as expected but as far as I know, that package is not required for Self-Contained apps.
Metadata
Metadata
Assignees
Labels
area-NotificationsToast notification, badges, Live Tiles, push notificationsToast notification, badges, Live Tiles, push notificationsneeds-triage