Closed KaKusaOAO closed 1 year ago
On .NET Core, Environment.OSVersion.Platform on macOS now returns PlatformID.Unix instead of PlatformID.MacOSX.
Environment.OSVersion.Platform
PlatformID.Unix
PlatformID.MacOSX
To fix this issue, I'm using RuntimeInformation.IsOSPlatform(OSPlatform.OSX) to tell macOS from Unix.
RuntimeInformation.IsOSPlatform(OSPlatform.OSX)
On .NET Core,
Environment.OSVersion.Platform
on macOS now returnsPlatformID.Unix
instead ofPlatformID.MacOSX
.To fix this issue, I'm using
RuntimeInformation.IsOSPlatform(OSPlatform.OSX)
to tell macOS from Unix.