<PackageReference Include="NETStandard.Library" Version="2.0.1" />

System.Runtime.InteropServices.OSPlatform

public struct OSPlatform : IEquatable<OSPlatform>
namespace System.Runtime.InteropServices { public struct OSPlatform : IEquatable<OSPlatform> { public static OSPlatform Linux { get; } public static OSPlatform OSX { get; } public static OSPlatform Windows { get; } public static OSPlatform Create(string osPlatform); public bool Equals(OSPlatform other); public static bool operator ==(OSPlatform left, OSPlatform right); public static bool operator !=(OSPlatform left, OSPlatform right); } }