Remove OpenSUSE13 and Fedora23 since they are end of lifed.

This commit is contained in:
Eric Erhardt 2017-03-01 15:12:16 -06:00
parent b3b4e4257c
commit b64068291b
13 changed files with 33 additions and 60 deletions

View file

@ -3,6 +3,7 @@
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using Microsoft.DotNet.Cli.Build.Framework;
using Microsoft.DotNet.PlatformAbstractions;
namespace Microsoft.DotNet.Cli.Build
@ -22,9 +23,25 @@ namespace Microsoft.DotNet.Cli.Build
{
Rid = RuntimeEnvironment.GetRuntimeIdentifier();
Architecture = RuntimeEnvironment.RuntimeArchitecture;
OSName = Monikers.GetOSShortName();
OSName = GetOSShortName();
return true;
}
private static string GetOSShortName()
{
string osname = "";
switch (CurrentPlatform.Current)
{
case BuildPlatform.Windows:
osname = "win";
break;
default:
osname = CurrentPlatform.Current.ToString().ToLower();
break;
}
return osname;
}
}
}