Add support for building dotnet CLI on Debian.

This commit is contained in:
Jeremy Meng 2016-03-03 18:38:58 +00:00
parent c33c2ff127
commit ee4bbb43ff
6 changed files with 47 additions and 14 deletions

View file

@ -65,11 +65,20 @@ namespace Microsoft.DotNet.Cli.Build.Framework
}
}
public static bool IsDebian
{
get
{
var osname = PlatformServices.Default.Runtime.OperatingSystem;
return string.Equals(osname, "debian", StringComparison.OrdinalIgnoreCase);
}
}
public static bool IsLinux
{
get
{
return IsUbuntu || IsCentOS || IsRHEL;
return IsUbuntu || IsCentOS || IsRHEL || IsDebian;
}
}
@ -118,6 +127,10 @@ namespace Microsoft.DotNet.Cli.Build.Framework
{
return BuildPlatform.RHEL;
}
else if (IsDebian)
{
return BuildPlatform.Debian;
}
else
{
return default(BuildPlatform);