Skip to content

Microsoft.Toolkit.Uwp.Notifications support in .NET 5 #3795

@RandomEngy

Description

@RandomEngy

Describe the problem this feature would solve

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request 📬A request for new changes to improve functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions