You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Currently when you install Microsoft.Toolkit.Uwp.Notifications on a .NET 5 app, it will give a build error:
Referencing a Windows Metadata component directly when targeting .NETCoreApp,Version=v5.0 is not supported. Use the C#/WinRT projection tool (https://aka.ms/cswinrt) or a provided projection for this target.
I also tried adding a TFM via <TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>as recommended by the docs, but that resulted in different errors about duplicate type declarations. Also it required a rather hefty 25MB Microsoft.Windows.SDK.NET.dll.
Describe the solution
It would be nice for Microsoft.Toolkit.Uwp.Notifications to support .NET 5, possibly by including the right projection to support the Windows Notification APIs.