Use the portable linux-x64
runtime when building on Linux.
This commit is contained in:
parent
dff66c1acb
commit
a97b572e49
4 changed files with 13 additions and 1 deletions
|
@ -7,5 +7,6 @@
|
||||||
<IncludeAdditionalSharedFrameworks Condition=" '$(IncludeAdditionalSharedFrameworks)' == '' ">false</IncludeAdditionalSharedFrameworks>
|
<IncludeAdditionalSharedFrameworks Condition=" '$(IncludeAdditionalSharedFrameworks)' == '' ">false</IncludeAdditionalSharedFrameworks>
|
||||||
<IncludeNuGetPackageArchive Condition=" '$(IncludeNuGetPackageArchive)' == '' ">true</IncludeNuGetPackageArchive>
|
<IncludeNuGetPackageArchive Condition=" '$(IncludeNuGetPackageArchive)' == '' ">true</IncludeNuGetPackageArchive>
|
||||||
<SkipBuildingInstallers Condition=" '$(SkipBuildingInstallers)' == '' ">false</SkipBuildingInstallers>
|
<SkipBuildingInstallers Condition=" '$(SkipBuildingInstallers)' == '' ">false</SkipBuildingInstallers>
|
||||||
|
<UsePortableLinuxSharedFramework Condition=" '$(UsePortableLinuxSharedFramework)' == '' AND '$(OSPlatform)' == 'linux' ">true</UsePortableLinuxSharedFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -5,12 +5,14 @@
|
||||||
<GetCurrentRuntimeInformation>
|
<GetCurrentRuntimeInformation>
|
||||||
<Output TaskParameter="Rid" PropertyName="HostRid" />
|
<Output TaskParameter="Rid" PropertyName="HostRid" />
|
||||||
<Output TaskParameter="OSName" PropertyName="HostOSName" />
|
<Output TaskParameter="OSName" PropertyName="HostOSName" />
|
||||||
|
<Output TaskParameter="OSPlatform" PropertyName="HostOSPlatform" />
|
||||||
</GetCurrentRuntimeInformation>
|
</GetCurrentRuntimeInformation>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Rid Condition=" '$(Rid)' == '' ">$(HostRid)</Rid>
|
<Rid Condition=" '$(Rid)' == '' ">$(HostRid)</Rid>
|
||||||
<Architecture Condition=" '$(Architecture)' == '' ">x64</Architecture>
|
<Architecture Condition=" '$(Architecture)' == '' ">x64</Architecture>
|
||||||
<OSName Condition=" '$(OSName)' == '' ">$(HostOSName)</OSName>
|
<OSName Condition=" '$(OSName)' == '' ">$(HostOSName)</OSName>
|
||||||
|
<OSPlatform Condition=" '$(OSPlatform)' == '' ">$(HostOSPlatform)</OSPlatform>
|
||||||
|
|
||||||
<BuildInfoPropsContent>
|
<BuildInfoPropsContent>
|
||||||
<Project ToolsVersion="15.0">
|
<Project ToolsVersion="15.0">
|
||||||
|
@ -18,6 +20,7 @@
|
||||||
<Rid>$(Rid)</Rid>
|
<Rid>$(Rid)</Rid>
|
||||||
<Architecture>$(Architecture)</Architecture>
|
<Architecture>$(Architecture)</Architecture>
|
||||||
<OSName>$(OSName)</OSName>
|
<OSName>$(OSName)</OSName>
|
||||||
|
<OSPlatform>$(OSPlatform)</OSPlatform>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
</BuildInfoPropsContent>
|
</BuildInfoPropsContent>
|
||||||
|
|
|
@ -10,7 +10,11 @@
|
||||||
<DownloadedSharedFrameworkInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-sharedframework-$(ProductMonikerRid).$(SharedFrameworkVersion)$(InstallerExtension)</DownloadedSharedFrameworkInstallerFileName>
|
<DownloadedSharedFrameworkInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-sharedframework-$(ProductMonikerRid).$(SharedFrameworkVersion)$(InstallerExtension)</DownloadedSharedFrameworkInstallerFileName>
|
||||||
<DownloadedSharedFrameworkInstallerFile Condition=" '$(InstallerExtension)' != '' ">$(PackagesDirectory)/$(DownloadedSharedFrameworkInstallerFileName)</DownloadedSharedFrameworkInstallerFile>
|
<DownloadedSharedFrameworkInstallerFile Condition=" '$(InstallerExtension)' != '' ">$(PackagesDirectory)/$(DownloadedSharedFrameworkInstallerFileName)</DownloadedSharedFrameworkInstallerFile>
|
||||||
|
|
||||||
<CombinedFrameworkHostCompressedFileName>dotnet-$(ProductMonikerRid).$(SharedFrameworkVersion)$(ArchiveExtension)</CombinedFrameworkHostCompressedFileName>
|
<!-- Use the portable linux-x64 Rid when downloading the shared framework compressed file.
|
||||||
|
NOTE: There isn't a 'linux-x64' version of the installers or the additional shared framweork. -->
|
||||||
|
<SharedFrameworkRid>$(ProductMonikerRid)</SharedFrameworkRid>
|
||||||
|
<SharedFrameworkRid Condition=" '$(UsePortableLinuxSharedFramework)' == 'true' ">linux-x64</SharedFrameworkRid>
|
||||||
|
<CombinedFrameworkHostCompressedFileName>dotnet-$(SharedFrameworkRid).$(SharedFrameworkVersion)$(ArchiveExtension)</CombinedFrameworkHostCompressedFileName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- Additional Shared Framework to be installed -->
|
<!-- Additional Shared Framework to be installed -->
|
||||||
|
|
|
@ -16,10 +16,14 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
[Output]
|
[Output]
|
||||||
public string OSName { get; set; }
|
public string OSName { get; set; }
|
||||||
|
|
||||||
|
[Output]
|
||||||
|
public string OSPlatform { get; set; }
|
||||||
|
|
||||||
public override bool Execute()
|
public override bool Execute()
|
||||||
{
|
{
|
||||||
Rid = RuntimeEnvironment.GetRuntimeIdentifier();
|
Rid = RuntimeEnvironment.GetRuntimeIdentifier();
|
||||||
OSName = GetOSShortName();
|
OSName = GetOSShortName();
|
||||||
|
OSPlatform = RuntimeEnvironment.OperatingSystemPlatform.ToString().ToLower();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue