Answers for "dotnet core detect if we are in linux"

C#
0

.net core check if linux

if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
    Console.WriteLine("We're on macOS!");
}
Posted by: Guest on June-09-2020

C# Answers by Framework

Browse Popular Code Answers by Language