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

Properly tell macOS from UNIX starting from .NET Core #217

Merged
merged 1 commit into from
Nov 10, 2022

Conversation

KaKusaOAO
Copy link
Contributor

On .NET Core, Environment.OSVersion.Platform on macOS now returns PlatformID.Unix instead of PlatformID.MacOSX.

To fix this issue, I'm using RuntimeInformation.IsOSPlatform(OSPlatform.OSX) to tell macOS from Unix.

@Lachee Lachee merged commit 013fbb8 into Lachee:master Nov 10, 2022
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