-
Notifications
You must be signed in to change notification settings - Fork 224
Support version ranges in project.json #442
Comments
- Added RequestedVersion to Library as IVersionSpec - Removed Snapshots from SemanticVersion and added them to VersionSpec instead. #442
Initial work is done. |
In the RC we'll look at implementing syntax similar to https://github.com/npm/node-semver#semver1----the-semantic-versioner-for-npm |
@davidfowl, does this mean we will have support for tilde ( From npm docs - https://docs.npmjs.com/files/package.json#dependencies:
|
It's possible but no promises for v1. NuGet v3 supports putting * anywhere in the version and we'll adopt that logic in dnu so |
Thanks. The npm folks added every possible option in there. If NuGet and dnx go with the same approach, it may left some corner cases little buggy (hard to test all possibilities without community feedback), but over time reliability can be assured. While going about it the most defensive way as always (hesitate adding new stuff) only slows down such enhancement opportunities IMO.. and it will take ages to get there! |
@davidfowl what happened with the * in RC. I am just trying to get latest version from feed with |
It does not work in the RC. When restore merges with nuget it'll be possible |
@davidfowl could you explain something more? |
DNX and DNU are being retired in favor of the dotnet CLI (github.com/dotnet/cli) and nuget. NuGet 3 supports the * syntax in more parts of the version than dnu currently does. We're working on merging the relevant features of DNU back into nuget. |
@davidfowl do you have use cases in some place written down? Or maybe an open issue with details? |
For what's exactly? The use of * in nuget? |
Yes. plus issue to integrate it with DNX an DNU |
Not sure there's anything specific about *, ask on the nuget repository. You can find other information here https://docs.nuget.org/Consume/ProjectJson-Format#project.json-usage. DNU NuGet/Home#1588 DNX has nothing to do with NuGet but here is some information on that https://github.com/dotnet/cli/issues/254#issuecomment-158124295 |
Needed to move Benchmarking and Profiling projects out of sub-directory Performance as Benchmarking could not locate a reference to Elasticsearch.Net, Nest or Tests projects. Raised an issue to check assumption - aspnet/dnx#3333. Removed dependency on NDesk.Options and include source file in Benchmarking project. Benchmarking needs to target dnxcore50 at the moment as it references Tests project. Update Newtonsoft.Json to 8.0.2. Not clear if there is a way to specify version ranges at present in project.json. See aspnet/dnx#1014 and aspnet/dnx#442. Nuget documentation states lowest version would be selected https://docs.nuget.org/Consume/ProjectJson-Format#project.json-usage build script Benchmark project now runs DNX solution builds of Benchmarking Fixed remaining warning
Today we only support minimum. There should be a way in the future to lock dependency ranges.
The text was updated successfully, but these errors were encountered: