Add support for building dotnet CLI on Debian.
This commit is contained in:
parent
c33c2ff127
commit
ee4bbb43ff
6 changed files with 47 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue