Skip to content

Change Environment.OSVersion to return actual OS version on Windows #33643

@jkotas

Description

@jkotas

Environment.OSVersion returns quirked OS version from app manifest on Windows. Consider changing it to return the actual OS version. It's not the recommended solution, but so many times I've seen folks say that Environment.OSVersion is buggy and then go and just do the P/Invoke themselves (or parse some other string-based representation that's doing it).

Related:

Metadata

Metadata

Assignees

Labels

area-System.Runtimebreaking-changeIssue or PR that represents a breaking API or functional change over a previous release.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions