NuGet.exe does not resolve to the latest version of a package when using * in PackageReference (MSBuild/Dotnet/VS restore do) #8432
Labels
Functionality:Restore
Priority:2
Issues for the current backlog.
Product:NuGet.exe
NuGet.exe
Type:Bug
Milestone
Details about Problem
Please note this is the same issue described in #6640. But please do check the repro steps as it doesn't actually work. Unsure how it worked then.
NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe):
NuGet.exe
NuGet version (x.x.x.xxx):
5.0.2.5988
dotnet.exe --version (if appropriate):
VS version (if appropriate):
OS version (i.e. win10 v1607 (14393.321)):
Win 10 Pro 1803
Worked before? If so, with which NuGet version:
It has been suggested in #6640 that it used to work. But it has never worked for me.
Detailed repro steps so we can see the same problem
Create an empty folder
Add test.csproj using the xml below
To start from a clean state, from a prompt run
nuget locals all -clear
Do a nuget restore with detailed output
nuget restore -Verbosity detailed .\test.csproj
See that Selenium.WebDriver has resolved to 2.2.0 and not the latest available package version on nuget.org.
Acquired lock for the installation of Selenium.WebDriver 2.2.0
What is the recommended mechanism to be able to resolve to latest available package version using package reference?
The text was updated successfully, but these errors were encountered: