Support installing the latest patch or minor version
See original GitHub issueTL;DR
Support a version format of 2.1.x
or 2.x
and the latest patch or minor version of .NET Core will be installed.
Summary
It’s quite a common pattern to be able to omit a minor or patch version and tooling will get the latest version.
For instance Azure Pipeline Use .NET V2 Task provides this mechanism.
This will allow a build matrix like this to be specified:
jobs:
build:
runs-on: ubuntu-16.04
strategy:
matrix:
dotnet: [ '2.1', '2.2', '3.0' ]
name: Dotnet ${{ matrix.dotnet }} sample
steps:
- uses: actions/checkout@master
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- run: dotnet build <my project>
The following options would be useful
2
or2.x
or2.*
- Installs the latest version of .NET Core 2, currently2.2.401
2.1
or2.1.x
or2.1.*
- Installs the latest version of .NET Core 2.1, currently2.1.801
Issue Analytics
- State:
- Created 4 years ago
- Reactions:19
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Semantic Versioning 2.0.0 | Semantic Versioning
PATCH version when you make backwards compatible bug fixes. Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR....
Read more >How do I install the latest minor version of a package on ...
Use npm install package-name@"<next-major.0.0". For example: npm install package-name@"<3.0.0" would install the latest right before 3.0.0 ...
Read more >Releases and support for .NET (.NET 5+ and .NET Core)
Learn about releases, patches, and support for .NET 5+ (including . ... Minor releases install side by side with previous minor releases.
Read more >Releases and patches—ArcGIS Pro | Documentation
ArcGIS Pro releases and patches, including how version numbers are assigned and ... Major.minor.patch, Example, New functionality added, Installation and ...
Read more >How to Use Semantic Versioning in NPM
By default, when installing an npm package without specifying a version, ... caret will only let us update patch versions, and not minor...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any progress here, tests are kind of halted right now since
3.1.201
doesn’t seem to work at all.@rainersigwald, my opinion is that’s a risk the consumer take on, as long as it’s explicit. Maybe a warning in the output to make it more prominent?
I don’t use the
2.x
wildcard as I know the SDK may not be compatible between minor versions, but I do use the2.2.x
wildcard a lot, and while I have occasionally found breaking changes, they were considered bugs.