src/Cli/func/Helpers/PlatformHelper.cs (9 lines of code) (raw):

// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. namespace Azure.Functions.Cli.Helpers { internal static class PlatformHelper { public static bool IsMono { get; } = Type.GetType("Mono.Runtime") != null; public static bool IsWindows { get; } = Environment.OSVersion.Platform == PlatformID.Win32NT; } }