Skip to content

OperatingSystem.Current #45228

Answered by huoyaoyuan
TonyValenti asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danmoseley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants