diff --git a/build/BuildDefaults.props b/build/BuildDefaults.props index 463e421fc..c78a5c0d9 100644 --- a/build/BuildDefaults.props +++ b/build/BuildDefaults.props @@ -7,5 +7,6 @@ false true false + true diff --git a/build/BuildInfo.targets b/build/BuildInfo.targets index 6df905670..6972a864e 100644 --- a/build/BuildInfo.targets +++ b/build/BuildInfo.targets @@ -5,12 +5,14 @@ + $(HostRid) x64 $(HostOSName) + $(HostOSPlatform) <Project ToolsVersion="15.0"> @@ -18,6 +20,7 @@ <Rid>$(Rid)</Rid> <Architecture>$(Architecture)</Architecture> <OSName>$(OSName)</OSName> + <OSPlatform>$(OSPlatform)</OSPlatform> </PropertyGroup> </Project> diff --git a/build/BundledRuntimes.props b/build/BundledRuntimes.props index c47b3caa4..7122b7c8f 100644 --- a/build/BundledRuntimes.props +++ b/build/BundledRuntimes.props @@ -10,7 +10,11 @@ dotnet-sharedframework-$(ProductMonikerRid).$(SharedFrameworkVersion)$(InstallerExtension) $(PackagesDirectory)/$(DownloadedSharedFrameworkInstallerFileName) - dotnet-$(ProductMonikerRid).$(SharedFrameworkVersion)$(ArchiveExtension) + + $(ProductMonikerRid) + linux-x64 + dotnet-$(SharedFrameworkRid).$(SharedFrameworkVersion)$(ArchiveExtension) diff --git a/build_projects/dotnet-cli-build/GetCurrentRuntimeInformation.cs b/build_projects/dotnet-cli-build/GetCurrentRuntimeInformation.cs index 352a225cf..7506491f2 100644 --- a/build_projects/dotnet-cli-build/GetCurrentRuntimeInformation.cs +++ b/build_projects/dotnet-cli-build/GetCurrentRuntimeInformation.cs @@ -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; }