Skip to content

Microsoft.Toolkit.Uwp.Notifications not working in a .Net 5 webapi project #3565

@davesmits

Description

@davesmits

Describe the bug

Create a .net 5 webapi and include Microsoft.Toolkit.Uwp.Notifications nuget. This will fail with error: error NETSDK1130: 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.

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:

Steps to Reproduce

see above

Steps to reproduce the behavior:

  1. create .net 5 webapi
  2. include nuget
  3. build the project

Expected behavior

Successful build and be able to use the classes to build my toast notification xml.

Visual Studio

  • [ x ] 2019 (version: 16.8.1)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions