Skip to content

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