-
On Linux, current situation is this:
On other (non-macOS) Unix-like OS, it looks like this:
IMO, Assuming that it is unlikely that the consumers are relying on the vague value of such that the output of above example will looks something like: Ubuntu 18.04
SmartOS 2020
This can be considered as a best effort to:
cc @eerhardt |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
See the very long conversation here: #26780. IMO, the heart of this issue is "On Linux distros, what is the OS?" Is it the Linux kernel? Is it the distro?
That is why we have My recommendation is that if you are on Windows or macOS, you can use |
Beta Was this translation helpful? Give feedback.
See the very long conversation here: #26780.
IMO, the heart of this issue is "On Linux distros, what is the OS?" Is it the Linux kernel? Is it the distro?
System.OperatingSystem
only has a singleSystem.Version
that it can include in its.ToString()
:runtime/src/libraries/System.Private.CoreLib/src/System/OperatingSystem.cs
Lines 51 to 79 in bd6cbe3