Skip to content

Change Environment.OSVersion to return actual OS version on macOS #34977

@eerhardt

Description

@eerhardt

Similar to #33643, but for macOS (or OSX). We are now returning an understandable version for Windows 10 (ex. 10.0.18363.0), we should start returning understandable versions for macOS.

Today if I run:

Console.WriteLine(System.Environment.OSVersion.Version.ToString());

On my macOS Mojave computer it says 18.7.0.0. But the "About This Mac" window says 10.14.6.

We should change OSVersion.Version to return 10.14.6 instead.

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions