dotnet / project-system

The .NET Project System for Visual Studio
MIT License
968 stars 387 forks source link

Windows SDK dependencies show warnings / incorrectly in 15.3/15.4 #2773

Open clairernovotny opened 7 years ago

clairernovotny commented 7 years ago

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

image

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

davkean commented 4 years ago

Triage: We'll address this when we get to WinUI support.