question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support installing the latest patch or minor version

See original GitHub issue

TL;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 or 2.x or 2.* - Installs the latest version of .NET Core 2, currently 2.2.401
  • 2.1 or 2.1.x or 2.1.* - Installs the latest version of .NET Core 2.1, currently 2.1.801

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:19
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Fronixcommented, Apr 16, 2020

Any progress here, tests are kind of halted right now since 3.1.201 doesn’t seem to work at all.

2reactions
JSkimmingcommented, Aug 21, 2019

@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 the 2.2.x wildcard a lot, and while I have occasionally found breaking changes, they were considered bugs.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found