Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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