Skip to content

NETSDK1082 if installed on WinUI project targeting 19041 or higher #1461

Open
@huoyaoyuan

Description

@huoyaoyuan

Bug

Despite our best efforts, bugs can slip into releases or corner cases forgotten about. We will try our best to remedy the situation
and/or provide workarounds. Note that certain (odd) behaviors are by design and as such are not considered bugs.

Which library version?

System.Reactive 5.0.0

What are the platform(s), environment(s) and related component version(s)?
WinUI 3 Preview 3 project

The winui template targets Windows 18362. When installing Rx, everything is OK.

However, if the target platform is set to net5.0-windows10.0.19041, msbuild will try to add a FrameworkReference to Microsoft.WindowsDesktop.App, add results in NETSDK1082 for missing arm64 rid.

It assumes Windows Desktop support always available on Windows, but it's not the case for ARM64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions