Skip to content
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

platformutils: use Version.ToString() to get number only #1264

Merged
merged 1 commit into from
May 19, 2023

Conversation

mjcheetham
Copy link
Collaborator

Use Environment.OSVersion.Version.ToString() over .VersionString to get a numerical version only on Windows and macOS.

Using .VersionString on macOS you get values like "Unix 13.3.1" rather than "13.3.1", and on Windows you get "Microsoft Windows NT 10.x.y.z" rather than "10.x.y.z".

Use Environment.OSVersion.Version.ToString() over .VersionString to get
a numercal version only on Windows and macOS.

Using .VersionString on macOS you get values like "Unix 13.3.1" rather
than "13.3.1", and on Windows you get "Microsoft Windows NT 10.x.y.z"
rather than "10.x.y.z".
@mjcheetham mjcheetham merged commit c8bec66 into git-ecosystem:main May 19, 2023
@mjcheetham mjcheetham deleted the osver branch May 19, 2023 15:01
@mjcheetham mjcheetham mentioned this pull request Jun 26, 2023
mjcheetham added a commit that referenced this pull request Jun 26, 2023
**Changes:**

- Use in-proc methods for getting OS version number (#1240, #1264)
- Update System.CommandLine (#1265)
- Suppress GUI from command-line argument (#1267)
- Add github (login|logout|list) commands (#1267)
- cURL Cookie file support (#1251)
- Update target framework on Mac/Linux to .NET 7 (#1274, #1282)
- Replace JSON.NET with System.Text.Json (#1274)
- Preserve exact redirect URI formatting in OAuth requests (#1281)
- Use IP localhost redirect for GitHub (#1286)
- Use WWW-Authenticate headers from Git for Azure Repos authority
(#1288)
- Better GitHub Enterprise Managed User (EMU) account support (#1190)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants