1.0 CLI versioning is confusing
See original GitHub issue1.0 CLI versioning is very confusing:
Installing the SDK shows me:
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:
- Created 7 years ago
- Reactions:8
- Comments:7 (6 by maintainers)
Top 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 >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
That to me is confusing. List them both.
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.