Skip to content

Fix $PSVersionTable.OS in What's New 6.0 #2039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ For more information about PowerShell jobs, see [about_Jobs](https://msdn.micros
- `PSEdition`: This is set to `Core` on PowerShell Core and `Desktop` on Windows PowerShell
- `GitCommitId`: This is the Git commit ID of the Git branch or tag where PowerShell was built.
On released builds, it will likely be the same as `PSVersion`.
- `OS`: This is an OS version string returned by `[System.Environment]::OSVersion.VersionString`
- `OS`: This is an OS version string returned by `[System.Runtime.InteropServices.RuntimeInformation]::OSDescription`
- `Platform`: This is returned by `[System.Environment]::OSVersion.Platform`
It is set to `Win32NT` on Windows, `MacOSX` on macOS, and `Unix` on Linux.
- Removed the `BuildVersion` property from `$PSVersionTable`.
Expand Down