NuGet / Home

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

Warning NU1603 should include the approximate best match found in the message #8612

Open livarcocc opened 5 years ago

livarcocc commented 5 years ago

From @basbossink on Thursday, September 19, 2019 4:05:34 PM

Steps to reproduce

Create a project that depends on a pre-release package that is not available (yet).

dotnet restore

Expected behavior

F:\vlow\Support.Mail\tst\Support.Mail.Tests\Divv.Vlow.Support.Mail.Tests.csproj : warning NU1603: Divv.Vlow.Support.Mail depends on Divv.Vlow.Reports.Mail (>= 2.2.0-dev.2.DIVDEV-1308.1) but Divv.Vlow.Reports.Mail 2.2.0-dev.2.DIVDEV-1308.1 was not found. An approximate best match Divv.Vlow.Reports.Mail 2.2.0-dev.2.DIVDEV-1308.0 was resolved. [F:\vlow\Support.Mail\Support.Mail.sln]

So the feature request is to add the actual version that was resolved to the warning message, since that information is more useful than repeating the version of the package that caused the warning.

Actual behavior

F:\vlow\Support.Mail\tst\Support.Mail.Tests\Divv.Vlow.Support.Mail.Tests.csproj : warning NU1603: Divv.Vlow.Support.Mail depends on Divv.Vlow.Reports.Mail (>= 2.2.0-dev.2.DIVDEV-1308.1) but Divv.Vlow.Reports.Mail 2.2.0-dev.2.DIVDEV-1308.1 was not found. An approximate best match of Divv.Vlow.Reports.Mail 2.2.0-dev.2.DIVDEV-1308.1.debug was resolved. [F:\vlow\Support.Mail\Support.Mail.sln]

Environment data

dotnet --info output:

.NET Core SDK (reflecting any global.json):
 Version:   2.2.402
 Commit:    c7f2f96116

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.18362
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.2.402\

Host (useful for support):
  Version: 2.2.7
  Commit:  b1e29ae826

.NET Core SDKs installed:
  2.1.802 [C:\Program Files\dotnet\sdk]
  2.2.301 [C:\Program Files\dotnet\sdk]
  2.2.401 [C:\Program Files\dotnet\sdk]
  2.2.402 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Copied from original issue: dotnet/cli#12679

livarcocc commented 5 years ago

From @livarcocc on Thursday, September 19, 2019 7:53:21 PM

I believe this warning comes from NuGet. I am going to move the issue there.