OperatingSystem.Current #45228
-
Currently the It would be nice if it also exposed a
This would provide an easy way to determine the current operating system and detect relevant information about it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It should be intentionally to NOT provide such information in core api. Versioning schema for future OS are effectively unknown. For example, service pack was a thing until Win7, but it isn't a thing in Win10. And also, taking versioning decision based on string is super stupid. There are rumor said that |
Beta Was this translation helpful? Give feedback.
It should be intentionally to NOT provide such information in core api.
Versioning schema for future OS are effectively unknown. For example, service pack was a thing until Win7, but it isn't a thing in Win10.
Another reason is that it's hard to take correct decision for future OS. The suggested approach is always checking "is version at least" or "is feature available".
And also, taking versioning decision based on string is super stupid. There are rumor said that
osVersion.StartWith("Windows 9")
for detecting win95-98 forces a jump from Windows 8 to Windows 10.