dotnet / dotnet/project-system
Windows SDK dependencies show warnings / incorrectly in 15.3/15.4
- 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:

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
Assessment
This issue has not been assessed yet.