-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet --version-minimal #5225
Comments
Just my 2c: |
Just parse the output. |
@ryanbrandenburg is parsing the output acceptable for now? |
@victorhurdugaci also, I would actually leave |
Or one param that indicates you'd like all the output in a parseable format, like |
@factormystic ugh, dunno...dislike it. I can understand the need to get just the version string, but I would really not like to have a |
It sounds kinda scary to start going too deep down the path of complicating the Examples:
|
@anurse this all started because I was unable to locate the .version file on linux. If it is available on all OS's that would be OK too, though slightly less nice since we'd have to special case things for each OS. |
The |
I don't see it under usr/share/dotnet/, usr/share/dotnet/bin, usr/share/dotnet/runtime or usr/share/dotnet/debian, even when using ls -a. Could someone else confirm it's there on their linux machine to see if I just have a bad install somehow? |
@ryanbrandenburg I don't see it either on Ubuntu with the latest installed. |
Clean docker image, with cli installed via .deb package: I cannot find it either
|
A discussion between @blackdwarf and @anurse produced the recommendation that |
Cool. Although, if I might push my luck here, the format that's stored in the .version file on windows and that a couple of our tools expect is "1.0.0.001880", without the "-beta-". It's a small thing to fix on our end, but it seems like whatever the "proper" format is it should be that way everywhere. Unless I'm missing some distinction. |
`dotnet --version` returns just the version number. This helps tools get this information without having to parse the full info. Introduce a new argument `--info` that returns the current "long form". With this, we also change the long form to say "RID" instead of "Runtime ID" simply because that would avoid any future localization issues and thus make the parsing easier. Fix #1607 #1882
@ryanbrandenburg - the new "proper" version format is with the |
For our CoreClr gating mechanism and for anywhere else we want to machine read the version it would be very helpful if there was a "--version-minimal" which only returned the version without the OS version and everything else.
So, instead of
it would output
The text was updated successfully, but these errors were encountered: