Skip to content

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

Merged
Lachee merged 1 commit intoLachee:masterfrom
KaKusaOAO:master
Nov 10, 2022
Merged

Properly tell macOS from UNIX starting from .NET Core#217
Lachee merged 1 commit intoLachee:masterfrom
KaKusaOAO:master

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.

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