Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

.net core check if linux

if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
    Console.WriteLine("We're on macOS!");
}
Source by mariusschulz.com #
 
PREVIOUS NEXT
Tagged: #core #check #linux
ADD COMMENT
Topic
Name
5+9 =