dotnet / project-system

The .NET Project System for Visual Studio
MIT License
971 stars 388 forks source link

Reference manager doesn't support multi-targeting #4960

Open drewnoakes opened 5 years ago

drewnoakes commented 5 years ago

Visual Studio Version: 16

Summary:

If a project contains multiple target frameworks, the behaviour of the Reference Manager is determined only by the first in that list.

Steps to Reproduce:

  1. Create a project with <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
  2. Right click the Dependencies node and click Add Reference...
  3. Note the Assemblies tab is not available
  4. Reorder the TargetFrameworks
  5. Repeat step 2
  6. Note the Assemblies tab is available

As @nguerrera said:

Getting this fully right is hard and probably requires new UI, the references would have to be conditioned on tfm.

devinvisible commented 5 years ago

Thank you. I experienced this in 16.1.3. Can confirm that swapping the order of the <TargetFrameworks> values allowed the Assemblies tab to be seen.

AraHaan commented 5 years ago

Seems it needs to look and see if the project lists any framework that supports them and then show it.

Well what files can I edit for the UI thing that shows up in visual studio on the property pages? Because maybe I can experiment with what might look best for a change to fix #800.