dotnet / dotnet/project-system

Windows SDK dependencies show warnings / incorrectly in 15.3/15.4

Open
#2,773 1 comment 0 reactions 0 assignees View on GitHub
Feature-Dependency-Node Feature-WinUI Parity-Legacy-Feature Triage-Approved
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

In an SDK style project that adds references to Windows SDK items, the solution explorer has incorrect displays and warnings:

![image](https://user-images.githubusercontent.com/1427284/29871308-492ef7c0-8d59-11e7-99da-e628b1b90774.png)

To repro:

1. Clone `https://github.com/Microsoft/UWPCommunityToolkit` and checkout `dev` or `39902ec9e2d5b73318a03d83e5505a4ff96b60df`
2. Open solution in VS. Make sure you have the UWP workload installed and the Windows 10 SDK(s) installed first!

Wait for auto-restore to settle down. Still have many warnings about unresolved SDK references in the Errors/Warnings window.

Go to the `Microsoft.Toolkit.Uwp.UI` project and expand the SDK node. You'll see `WindowsDesktop` and `WindowsMobile` with a warning sign on them (despite the warning, they appear to be resolved correctly and work). The display name isn't reflected correctly according to the item metadata either.

Now restart VS and load the solution again. The same project now shows four items in the SDK node, the two mentioned plus one each representing the path to the location.

/cc @nmetulev

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.