NuGet / Home

Repo for NuGet Client issues
Other
1.5k stars 253 forks source link

NuGet UI in Visual Studio should not offer to consolidate Microsoft.NETCore.App #6081

Open bradwilson opened 6 years ago

bradwilson commented 6 years ago

Details about Problem

NuGet product used: Visual Studio UI

NuGet version (x.x.x.xxx): 4.4.0

VS version (if appropriate): 2017 15.4.1

OS version (i.e. win10 v1607 (14393.321)): Win10 v1709 (16299.19)

Worked before? If so, with which NuGet version: Unknown

Detailed repro steps so we can see the same problem

  1. Create a solution with projects using various levels of .NET Core. The screenshot provided here uses the console project here: https://github.com/xunit/xunit.integration/tree/master/console

  2. Right click on the solution, choose 'Manage NuGet Packages for Solution...'

  3. The 'Consolidate' tab offers to consolidate different versions of .NET Core (aka, Microsoft.NETCore.app).

VS 2017 15.4.1

Simply put: The UI should not offer to do that.

The correct behavior appears to already exist for the 'Updates' tab (i.e., that Microsoft.NETCore.App is not something offered to upgrade), so it's confusing why this logic wasn't also extended to the 'Consolidate' tab.

rrelyea commented 6 years ago

@bradwilson - from the screenshot it looks like one is not allowed to change the versions, but they are allowed to see the different versions installed. Is that correct?

bradwilson commented 6 years ago

That's right. The Update tab does not offer updates (which is the correct behavior).

uygary commented 5 years ago

Correct me if I'm wrong @bradwilson but it seems that the Consolidate view doesn't allow updates as well. In that case, this is by all means already the correct behavior. Consolidate tab should display the version conflict, but it should not allow an update to be performed. I believe this issue should be closed.