.net core check if linux
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
Console.WriteLine("We're on macOS!");
}
Are there any code examples left?
New code examples in category C#
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
Console.WriteLine("We're on macOS!");
}