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.

1.0 CLI versioning is confusing

See original GitHub issue

1.0 CLI versioning is very confusing:

Installing the SDK shows me:

image

Running dotnet, shows me:

Microsoft .NET Core Shared Framework Host

  Version  : 1.1.0
  Build    : 928f77c4bc3f49d892459992fb6e1d5542cb5e86

[...]

Running dotnet --version, shows me:

D:\Mvc>dotnet --version
1.0.0-rc4-004828

I would expect some of these versions to have some relationship with each other. When someone asks, “what version of CLI are you running?” I don’t know what answer to give them.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:8
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
davkeancommented, Feb 16, 2017

I believe dotnet will return the Shared Framework version on which the CLI is running. dotnet --version returns the CLI version.

That to me is confusing. List them both.

1reaction
blackdwarfcommented, Feb 17, 2017

This is not quite true I believe. The dotnet on its own will return the host’s version. --version will return the CLI version. Now, --version was added precisely to return a single string which is the CLI version. Changing that now would mean breaking people who use it, for example, in their build scripts. Luckily, we have --info that can (and will in the future) contain more info about all of the moving pieces so users can reason about it.

Now, as for shared framework version, there were a lot of discussion on another issue on GH about what to show for the shared fx. Don’t forget, users can have multiples of these installed. So, we could return the one that the CLI runs on, which, in general, I don’t see how useful it is; it is an implementation detail, is it not? Nothing prevents the user from installing a completely different one and then getting the one that the CLI runs on would again become confusing.

A suggestion I had was to introduce dotnet list runtimes that would list out all of the versions that the host that is currently on the $PATH (the one that executes the command) has access to.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apollo 1.0.5 - Library and CLI version mismatch
I'm a bit confused since i can clearly see that Apollo is at version 1.0.5, but the generate cli command thinks it is...
Read more >
The dotnet cli shows 1.0 even though I have installed .Net ...
To add extra confusion, the SDK versions don't line up with the version numbers of the .Net Core releases so you really have...
Read more >
What should dotnet --version display? · Issue #6569
Given the existing set of tools out there, it seems very confusing to users if the dotnet cli program prints a version unrelated...
Read more >
Ghost-CLI only works with Ghost versions >= 1.0.0
I'm just simply trying to run a ghost start or a ghost restart and I continue to get: Ghost-CLI only works with Ghost...
Read more >
Updating the version number in your .NET build pipeline
The built assembly that the command has created in the bin folder will correctly have the version number set as per the command....
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