Add support for building dotnet CLI on RHEL.

This commit is contained in:
Sridhar Periyasamy 2016-03-02 16:20:45 -05:00 committed by Sridhar Periyasamy
parent ab5df03700
commit 3a4ce0a86b
6 changed files with 48 additions and 47 deletions

View file

@ -48,6 +48,15 @@ namespace Microsoft.DotNet.Cli.Build.Framework
}
}
public static bool IsRHEL
{
get
{
var osname = PlatformServices.Default.Runtime.OperatingSystem;
return string.Equals(osname, "rhel", StringComparison.OrdinalIgnoreCase);
}
}
private static BuildPlatform DetermineCurrentPlatform()
{
if (IsWindows)
@ -66,10 +75,14 @@ namespace Microsoft.DotNet.Cli.Build.Framework
{
return BuildPlatform.CentOS;
}
else if (IsRHEL)
{
return BuildPlatform.RHEL;
}
else
{
return default(BuildPlatform);
}
}
}
}
}