Use the portable linux-x64 runtime when building on Linux.

This commit is contained in:
Eric Erhardt 2017-03-24 15:07:54 -05:00
parent dff66c1acb
commit a97b572e49
4 changed files with 13 additions and 1 deletions

View file

@ -16,10 +16,14 @@ namespace Microsoft.DotNet.Cli.Build
[Output]
public string OSName { get; set; }
[Output]
public string OSPlatform { get; set; }
public override bool Execute()
{
Rid = RuntimeEnvironment.GetRuntimeIdentifier();
OSName = GetOSShortName();
OSPlatform = RuntimeEnvironment.OperatingSystemPlatform.ToString().ToLower();
return true;
}