-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support pre-release packages with floating versions. Version="*-*" and similar. #912
Comments
We can discuss this for 3.2 |
I looked at how NPM does it, and it looks like it will not allow pre-releases with such a specifier. We need to work on how we extend our syntax to support ranges (do we go with something similar to npm? Do we also allow |
AFAIK it stops when it sees the |
Yes it does, my comment was a question about what we should do in the future :) |
Wondering if there is any progress on this as for CI purposes it would really help us to support
|
Not yet, a good indication of progress would be if the item is assigned to someone for work. |
Unfortunately that's what I thought... Just been open for over a year and bumped again and again... :( |
Update: This work has been scheduled. |
Update - here is a link to the spec - https://github.com/NuGet/Home/wiki/Support-pre-release-packages-with-floating-versions We will continue to use this issue for feedback. |
Pull Request out based on the above linked design NuGet/NuGet.Client#3247. |
Hi all, I saw that the "Support pre-release packages with floating versions" changes are implement in the 5.6.0 nuget version and I tried the latest 5.6.0 preview2 version but the floating version format "-" is still considered as an invalid version format. Am i missing something? Or do i have to wait for the full 5.6.0 release? Visual Studio 2019 16.5.4 |
@nkolev92 can you point to the version of the tools where this works? |
It will be a part of the 5.6 release/16.6 of Visual Studio. It will be in preview 3 of both which is supposed to ship next week. |
@nkolev92 Are versions like |
@sm-g Floating versions are only allowed in the min part of the range, they cannot be part of the upper bound, so your example version range is not supported. |
UPDATE: final solution details
Original Issue:
Consider a project.json specification such as
If the only packages in the feed are prerelease packages such as
A.1.0.0-alpha
,A.1.0.1-beta
, the restore fails stating it was unable to resolve packageA
.[anangaur] Adding the requirement as evolved during the discussions:
As Noel, who uses NuGet packages in PackageReference based projects,
Link to spec - https://github.com/NuGet/Home/wiki/Support-pre-release-packages-with-floating-versions
Status - Implemented in version 5.6 of NuGet, 16.6 of Visual Studio and 3.1.300 of the .NET Core SDK.
The text was updated successfully, but these errors were encountered: