Cannot add new NuGet package as prerelease
Description
Since very recently, paket does not allow anymore to add a new NuGet package with a prerelease version
Repro steps
- Clone the repro repo
- Checkout branch "repro-add"
./paket/paket.bootstrapper.exe.paket/paket.exe add nuget CommandLineParser version 2.0.75-beta project App
Expected behavior
CommandLineParser is installed and marked as prerelease in paket.dependencies
Actual behavior
PS C:\Users\11mvazquez\Desktop\ReproUpdateIssue> .\.paket\paket.exe add nuget Co
mmandLineParser version 2.0.75-beta
Paket version 3.13.0.0
Adding CommandLineParser 2.0.75-beta to C:\Users\11mvazquez\Desktop\ReproUpdateI
ssue\paket.dependencies into group Main
Resolving packages for group Main:
- CommandLineParser is pinned to 2.0.75-beta
Package not available.
Paket failed with:
There was a version conflict during package resolution.
Could not resolve package CommandLineParser:
- Dependencies file requested package CommandLineParser: 2.0.75-beta
- Available versions:
- (2.0.275-beta, [https://www.nuget.org/api/v2])
- (2.0.273-beta, [https://www.nuget.org/api/v2])
- (2.0.261-beta, [https://www.nuget.org/api/v2])
- (2.0.257-beta, [https://www.nuget.org/api/v2])
- (2.0.255-beta, [https://www.nuget.org/api/v2])
- (2.0.251-beta, [https://www.nuget.org/api/v2])
- (2.0.241-beta, [https://www.nuget.org/api/v2])
- (2.0.239-beta, [https://www.nuget.org/api/v2])
- (2.0.235-beta, [https://www.nuget.org/api/v2])
- (2.0.233-beta, [https://www.nuget.org/api/v2])
- (2.0.231-beta, [https://www.nuget.org/api/v2])
- (2.0.223-beta, [https://www.nuget.org/api/v2])
- (2.0.219-beta, [https://www.nuget.org/api/v2])
- (2.0.217-beta, [https://www.nuget.org/api/v2])
- (2.0.215-beta, [https://www.nuget.org/api/v2])
- (2.0.211-alpha, [https://www.nuget.org/api/v2])
- (2.0.207-alpha, [https://www.nuget.org/api/v2])
- (2.0.205-alpha, [https://www.nuget.org/api/v2])
- (2.0.201-alpha, [https://www.nuget.org/api/v2])
- (2.0.119-alpha, [https://www.nuget.org/api/v2])
- (2.0.115-alpha, [https://www.nuget.org/api/v2])
- (2.0.107-alpha, [https://www.nuget.org/api/v2])
- (2.0.103-alpha, [https://www.nuget.org/api/v2])
- (2.0.101-alpha, [https://www.nuget.org/api/v2])
- (2.0.99-alpha, [https://www.nuget.org/api/v2])
- (2.0.93-alpha, [https://www.nuget.org/api/v2])
- (2.0.89-alpha, [https://www.nuget.org/api/v2])
- (2.0.85-alpha, [https://www.nuget.org/api/v2])
- (2.0.81-alpha, [https://www.nuget.org/api/v2])
- (2.0.77-alpha, [https://www.nuget.org/api/v2])
- (2.0.75-alpha, [https://www.nuget.org/api/v2])
- (2.0.71-alpha, [https://www.nuget.org/api/v2])
- (2.0.65-alpha, [https://www.nuget.org/api/v2])
- (2.0.61-alpha, [https://www.nuget.org/api/v2])
- (2.0.57-alpha, [https://www.nuget.org/api/v2])
- (2.0.51-alpha, [https://www.nuget.org/api/v2])
- (2.0.49-alpha, [https://www.nuget.org/api/v2])
- (2.0.47-alpha, [https://www.nuget.org/api/v2])
- (2.0.43-alpha, [https://www.nuget.org/api/v2])
- (2.0.41-alpha, [https://www.nuget.org/api/v2])
- (2.0.39-alpha, [https://www.nuget.org/api/v2])
- (2.0.35-alpha, [https://www.nuget.org/api/v2])
- (2.0.33-alpha, [https://www.nuget.org/api/v2])
- (2.0.23-alpha, [https://www.nuget.org/api/v2])
- (2.0.21-alpha, [https://www.nuget.org/api/v2])
- (2.0.19-alpha, [https://www.nuget.org/api/v2])
- (2.0.9-alpha, [https://www.nuget.org/api/v2])
- (2.0.8-pre, [https://www.nuget.org/api/v2])
- (2.0.7-pre, [https://www.nuget.org/api/v2])
- (2.0.6-pre, [https://www.nuget.org/api/v2])
- (2.0.5-pre, [https://www.nuget.org/api/v2])
- (2.0.4-pre, [https://www.nuget.org/api/v2])
- (2.0.3-pre, [https://www.nuget.org/api/v2])
- (2.0.2-pre, [https://www.nuget.org/api/v2])
- (2.0.1-pre, [https://www.nuget.org/api/v2])
- (2.0.0-pre, [https://www.nuget.org/api/v2])
- (1.9.71, [https://www.nuget.org/api/v2])
- (1.9.7, [https://www.nuget.org/api/v2])
- (1.9.6-rc1, [https://www.nuget.org/api/v2])
- (1.9.5-rc0, [https://www.nuget.org/api/v2])
- (1.9.4.229-beta, [https://www.nuget.org/api/v2])
- (1.9.4.227-beta, [https://www.nuget.org/api/v2])
- (1.9.4.215-beta, [https://www.nuget.org/api/v2])
- (1.9.4.209-beta, [https://www.nuget.org/api/v2])
- (1.9.3.34, [https://www.nuget.org/api/v2])
- (1.9.3.31, [https://www.nuget.org/api/v2])
- (1.9.3.29, [https://www.nuget.org/api/v2])
- (1.9.3.23, [https://www.nuget.org/api/v2])
- (1.9.3.19, [https://www.nuget.org/api/v2])
- (1.9.3.15, [https://www.nuget.org/api/v2])
- (1.9.2.41, [https://www.nuget.org/api/v2])
- (1.9.2.4, [https://www.nuget.org/api/v2])
- (1.9.2.1, [https://www.nuget.org/api/v2])
- (1.8.1.0, [https://www.nuget.org/api/v2])
- (1.8.0.7, [https://www.nuget.org/api/v2])
Please try to relax some conditions.
Known workarounds
Add manually the line in paket.dependencies:
nuget CommandLineParser prerelease
Run commands
.paket/paket.exe install
.paket/paket.exe add nuget CommandLineParser project App
Related information
- Operating system: Win 7 64-bits
- Paket 3.13.0
- .NET Runtime v4.6
"Since very recently" - what does this mean? Is there a paket version which still works? Which is the first that is broken for you?
scratch that. I think I know the issue.
@forki I did not pay exact attention, but it was working last Thursday with paket version 3.11
yeah it's fine. I'm on it.
ok this seems to be correct behaviour.
.paket/paket.exe add nuget CommandLineParser version 2.0.75-beta project App
2.0.75-beta is not existing. So you can't install that and paket is telling you Package not available.` and then shows you alternatives.
Argh you are right, what a typo...
I actually tried to build a reproduction of a bug we have with Paket.Core 3.13.0 and our private server, involving prereleases with CommandLineParser. When building a repro repo, I failed adding CommandLineParser because of this typo.
Really sorry!
I have tried to build a repro repo for our problem in Paket.Core when doing a PackageUpdate, but I failed to find a minimal environment where the problem occurs.
I will have to debug locally with our dear Artifactory server.