Skip to content

Commit d222dd0

Browse files
committed
Enable building on arm64
1 parent 8343c51 commit d222dd0

12 files changed

+400
-19
lines changed

build-source-tarball.sh

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,32 @@ if [ -z "${1:-}" ]; then
1212
exit 1
1313
fi
1414

15+
# Use uname to determine what the CPU is.
16+
cpuname=$(uname -p)
17+
# Some Linux platforms report unknown for platform, but the arch for machine.
18+
if [[ "$cpuname" == "unknown" ]]; then
19+
cpuname=$(uname -m)
20+
fi
21+
22+
case $cpuname in
23+
aarch64)
24+
buildArch=arm64
25+
;;
26+
amd64|x86_64)
27+
buildArch=x64
28+
;;
29+
armv7l)
30+
buildArch=arm
31+
;;
32+
i686)
33+
buildArch=x86
34+
;;
35+
*)
36+
echo "Unknown CPU $cpuname detected, treating it as x64"
37+
buildArch=x64
38+
;;
39+
esac
40+
1541
TARBALL_ROOT=$1
1642
shift
1743

@@ -199,28 +225,28 @@ cp $SCRIPT_ROOT/support/tarball/build.sh $TARBALL_ROOT/build.sh
199225
mkdir -p $TARBALL_ROOT/packages/prebuilt
200226
mkdir -p $TARBALL_ROOT/packages/source-built
201227
find $SCRIPT_ROOT/packages/restored/ -name '*.nupkg' -exec cp {} $TARBALL_ROOT/packages/prebuilt/ \;
202-
find $SCRIPT_ROOT/bin/obj/x64/Release/nuget-packages -name '*.nupkg' -exec cp {} $TARBALL_ROOT/packages/prebuilt/ \;
228+
find $SCRIPT_ROOT/bin/obj/$buildArch/Release/nuget-packages -name '*.nupkg' -exec cp {} $TARBALL_ROOT/packages/prebuilt/ \;
203229

204230
# Copy reference-packages from bin dir to reference-packages directory.
205231
# See corresponding change in dir.props to change ReferencePackagesBasePath conditionally in offline build.
206232
mkdir -p $TARBALL_ROOT/packages/reference
207-
cp -r $SCRIPT_ROOT/bin/obj/x64/Release/reference-packages/source $TARBALL_ROOT/packages/reference/source
208-
cp -r $SCRIPT_ROOT/bin/obj/x64/Release/reference-packages/staging $TARBALL_ROOT/packages/reference/staging
233+
cp -r $SCRIPT_ROOT/bin/obj/$buildArch/Release/reference-packages/source $TARBALL_ROOT/packages/reference/source
234+
cp -r $SCRIPT_ROOT/bin/obj/$buildArch/Release/reference-packages/staging $TARBALL_ROOT/packages/reference/staging
209235

210236
# Copy tarballs to ./packages/archive directory
211237
mkdir -p $TARBALL_ROOT/packages/archive
212-
cp -r $SCRIPT_ROOT/bin/obj/x64/Release/external-tarballs/*.tar.gz $TARBALL_ROOT/packages/archive/
238+
cp -r $SCRIPT_ROOT/bin/obj/$buildArch/Release/external-tarballs/*.tar.gz $TARBALL_ROOT/packages/archive/
213239

214240
# Copy generated source from bin to src/generatedSrc
215-
cp -r $SCRIPT_ROOT/bin/obj/x64/Release/generatedSrc $TARBALL_ROOT/src/generatedSrc
241+
cp -r $SCRIPT_ROOT/bin/obj/$buildArch/Release/generatedSrc $TARBALL_ROOT/src/generatedSrc
216242

217243
if [ -e $SCRIPT_ROOT/testing-smoke/smoke-test-packages ]; then
218244
cp -rf $SCRIPT_ROOT/testing-smoke/smoke-test-packages $TARBALL_ROOT/packages
219245
fi
220246

221247
echo 'Removing source-built packages from tarball prebuilts...'
222248

223-
for built_package in $(find $SCRIPT_ROOT/bin/obj/x64/Release/blob-feed/packages/ -name '*.nupkg' | tr '[:upper:]' '[:lower:]')
249+
for built_package in $(find $SCRIPT_ROOT/bin/obj/$buildArch/Release/blob-feed/packages/ -name '*.nupkg' | tr '[:upper:]' '[:lower:]')
224250
do
225251
if [ -e $TARBALL_ROOT/packages/prebuilt/$(basename $built_package) ]; then
226252
rm $TARBALL_ROOT/packages/prebuilt/$(basename $built_package)
@@ -235,8 +261,8 @@ mkdir -p $TARBALL_ROOT/packages/source-built
235261
cp -r $SCRIPT_ROOT/Tools/source-built/coreclr-tools $TARBALL_ROOT/packages/source-built/
236262

237263
# Setup package version props to include both source-built and running PackageVersions.props
238-
mkdir --parents $TARBALL_ROOT/bin/obj/x64/Release/
239-
cp $SCRIPT_ROOT/support/tarball/PackageVersions.props $TARBALL_ROOT/bin/obj/x64/Release/
264+
mkdir --parents $TARBALL_ROOT/bin/obj/$buildArch/Release/
265+
cp $SCRIPT_ROOT/support/tarball/PackageVersions.props $TARBALL_ROOT/bin/obj/$buildArch/Release/
240266

241267
if [ $INCLUDE_LEAK_DETECTION -eq 1 ]; then
242268
echo 'Building leak detection MSBuild tasks...'
@@ -246,7 +272,7 @@ fi
246272

247273
echo 'Removing reference-only packages from tarball prebuilts...'
248274

249-
for ref_package in $(find $SCRIPT_ROOT/bin/obj/x64/Release/reference-packages/packages-to-delete/ -name '*.nupkg' | tr '[:upper:]' '[:lower:]')
275+
for ref_package in $(find $SCRIPT_ROOT/bin/obj/$buildArch/Release/reference-packages/packages-to-delete/ -name '*.nupkg' | tr '[:upper:]' '[:lower:]')
250276
do
251277
if [ -e $TARBALL_ROOT/packages/prebuilt/$(basename $ref_package) ]; then
252278
rm $TARBALL_ROOT/packages/prebuilt/$(basename $ref_package)
@@ -277,7 +303,7 @@ done
277303
echo 'Removing source-built, previously source-built packages and reference packages from il pkg src...'
278304
OLDIFS=$IFS
279305

280-
allBuiltPkgs=(`ls $SCRIPT_ROOT/bin/obj/x64/Release/blob-feed/packages/*.nupkg | xargs -n1 basename | tr '[:upper:]' '[:lower:]'`)
306+
allBuiltPkgs=(`ls $SCRIPT_ROOT/bin/obj/$buildArch/Release/blob-feed/packages/*.nupkg | xargs -n1 basename | tr '[:upper:]' '[:lower:]'`)
281307
pushd $TARBALL_ROOT/packages/reference/staging/
282308
ilSrcPaths=(`find . -maxdepth 2 -mindepth 2`)
283309
popd

dir.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Configuration Condition="$(Configuration) == ''">Release</Configuration>
5+
6+
<BuildArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</BuildArchitecture>
7+
<Platform Condition="'$(Platform)' == '' AND '$(BuildArchitecture)' == 'arm64'">$(BuildArchitecture)</Platform>
58
<Platform Condition="'$(Platform)' == ''">x64</Platform>
69

710
<!-- true if we have bootstrapped buildtools (usually on an unsupported platform -->
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
diff --git a/Directory.Build.props b/Directory.Build.props
2+
index 2ef491a409..8e699a2d93 100644
3+
--- a/Directory.Build.props
4+
+++ b/Directory.Build.props
5+
@@ -105,6 +105,8 @@
6+
<TargetOsName Condition=" '$(TargetOsName)' == '' AND $([MSBuild]::IsOSPlatform('Windows'))">win</TargetOsName>
7+
<TargetOsName Condition=" '$(TargetOsName)' == '' AND $([MSBuild]::IsOSPlatform('OSX'))">osx</TargetOsName>
8+
<TargetOsName Condition=" '$(TargetOsName)' == '' AND $([MSBuild]::IsOSPlatform('Linux'))">linux</TargetOsName>
9+
+ <BuildArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</BuildArchitecture>
10+
+ <TargetArchitecture Condition="'$(TargetArchitecture)' == '' AND '$(BuildArchitecture)' == 'arm64'">$(BuildArchitecture)</TargetArchitecture>
11+
<TargetArchitecture Condition="'$(TargetArchitecture)' == ''">x64</TargetArchitecture>
12+
<TargetRuntimeIdentifier>$(TargetOsName)-$(TargetArchitecture)</TargetRuntimeIdentifier>
13+
14+
diff --git a/build.sh b/build.sh
15+
index 05e1628368..bbb79aea08 100755
16+
--- a/build.sh
17+
+++ b/build.sh
18+
@@ -13,7 +13,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
19+
target_os_name=''
20+
ci=false
21+
use_default_binary_log=false
22+
-verbosity='minimal'
23+
+verbosity='detailed'
24+
run_restore=''
25+
run_build=true
26+
run_pack=false
27+
@@ -27,7 +27,7 @@ build_nodejs=''
28+
build_java=''
29+
build_installers=''
30+
build_projects=''
31+
-target_arch='x64'
32+
+target_arch=''
33+
configuration=''
34+
35+
if [ "$(uname)" = "Darwin" ]; then
36+
@@ -96,6 +96,21 @@ __warn() {
37+
# main
38+
#
39+
40+
+case "$(uname -m)" in
41+
+ aarch64)
42+
+ target_arch='arm64'
43+
+ ;;
44+
+ armv7l)
45+
+ target_arch='arm'
46+
+ ;;
47+
+ i686)
48+
+ target_arch='x86'
49+
+ ;;
50+
+ x86_64)
51+
+ target_arch='x64'
52+
+ ;;
53+
+esac
54+
+
55+
while [[ $# -gt 0 ]]; do
56+
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')"
57+
case "$opt" in
58+
diff --git a/global.json b/global.json
59+
index b0204615a6..ddc97517fe 100644
60+
--- a/global.json
61+
+++ b/global.json
62+
@@ -5,10 +5,7 @@
63+
"tools": {
64+
"dotnet": "3.0.100-preview8-013656",
65+
"runtimes": {
66+
- "dotnet/x64": [
67+
- "$(MicrosoftNETCoreAppRuntimeVersion)"
68+
- ],
69+
- "dotnet/x86": [
70+
+ "dotnet": [
71+
"$(MicrosoftNETCoreAppRuntimeVersion)"
72+
]
73+
},
74+
diff --git a/src/Framework/src/Microsoft.AspNetCore.App.Runtime.csproj b/src/Framework/src/Microsoft.AspNetCore.App.Runtime.csproj
75+
index 4c4298a92d..5364a02af7 100644
76+
--- a/src/Framework/src/Microsoft.AspNetCore.App.Runtime.csproj
77+
+++ b/src/Framework/src/Microsoft.AspNetCore.App.Runtime.csproj
78+
@@ -90,15 +90,17 @@ This package is an internal implementation of the .NET Core SDK and is not meant
79+
<PathSeparator Condition="'$(PathSeparator)' == ''">:</PathSeparator>
80+
<PathSeparator Condition=" '$(TargetOsName)' == 'win' ">%3B</PathSeparator>
81+
82+
+ <CrossCompileDirectory Condition=" '$(TargetRuntimeIdentifier)' == 'linux-arm' ">x64_arm</CrossCompileDirectory>
83+
+ <CrossCompileDirectory Condition=" '$(TargetArchitecture)' == 'arm64' AND '$(BuildArchitecture)' != 'arm64' ">x64_arm64</CrossCompileDirectory>
84+
+ <CrossCompileDirectory Condition=" '$(TargetRuntimeIdentifier)' == 'win-arm' ">x86_arm</CrossCompileDirectory>
85+
+
86+
<!-- Crossgen executable name -->
87+
<CrossgenToolFileName>crossgen</CrossgenToolFileName>
88+
<CrossgenToolFileName Condition=" '$(TargetOsName)' == 'win' ">$(CrossgenToolFileName).exe</CrossgenToolFileName>
89+
<!-- Default crossgen executable relative path -->
90+
<CrossgenToolPackagePath>$(CrossgenToolFileName)</CrossgenToolPackagePath>
91+
<!-- Disambiguated RID-specific crossgen executable relative path -->
92+
- <CrossgenToolPackagePath Condition=" '$(TargetRuntimeIdentifier)' == 'linux-arm' ">x64_arm\$(CrossgenToolPackagePath)</CrossgenToolPackagePath>
93+
- <CrossgenToolPackagePath Condition=" '$(TargetRuntimeIdentifier)' == 'linux-arm64' OR '$(TargetRuntimeIdentifier)' == 'linux-musl-arm64' ">x64_arm64\$(CrossgenToolPackagePath)</CrossgenToolPackagePath>
94+
- <CrossgenToolPackagePath Condition=" '$(TargetRuntimeIdentifier)' == 'win-arm' ">x86_arm\$(CrossgenToolPackagePath)</CrossgenToolPackagePath>
95+
+ <CrossgenToolPackagePath Condition=" '$(CrossComipleDirectory)' != '' ">$(CrossCompileDirectory)\$(CrossgenToolPackagePath)</CrossgenToolPackagePath>
96+
97+
<RuntimePackageRoot>$([System.IO.Path]::Combine('$(NuGetPackageRoot)', 'microsoft.netcore.app.runtime.$(RuntimeIdentifier)', '$(MicrosoftNETCoreAppRuntimeVersion)'))</RuntimePackageRoot>
98+
<RuntimePackageRoot>$([MSBuild]::EnsureTrailingSlash('$(RuntimePackageRoot)'))</RuntimePackageRoot>
99+
@@ -293,7 +295,9 @@ This package is an internal implementation of the .NET Core SDK and is not meant
100+
-->
101+
<PropertyGroup>
102+
<CrossgenToolDir>$(IntermediateOutputPath)crossgen\</CrossgenToolDir>
103+
- <CoreCLRJitPath>$(CrossgenToolDir)$(LibPrefix)clrjit$(LibExtension)</CoreCLRJitPath>
104+
+ <!-- <CoreCLRJitPath>$(RuntimePackageRoot)runtimes\$(LibPrefix)clrjit$(LibExtension)</CoreCLRJitPath> -->
105+
+ <CoreCLRJitPath Condition="'$(CrossCompileDirectory)' == ''">$(RuntimePackageRoot)runtimes\$(RuntimeIdentifier)\native\$(LibPrefix)clrjit$(LibExtension)</CoreCLRJitPath>
106+
+ <CoreCLRJitPath Condition="'$(CrossCompileDirectory)' != ''">$(RuntimepackageRoot)runtimes\$(CrossCompileDirectory)\native\$(LibPrefix)clrjit$(LibraryFileExtension)</CoreCLRJitPath>
107+
</PropertyGroup>
108+
109+
<ItemGroup>
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
From 4b5c617203cfb9d2c1b12995e12d819fba6d7b6f Mon Sep 17 00:00:00 2001
2+
From: Omair Majid <[email protected]>
3+
Date: Tue, 8 Oct 2019 17:02:29 -0400
4+
Subject: [PATCH] Enable building on arm64 machines
5+
6+
With this commit, I can build core-sdk on RHEL 8 on arm64 directly,
7+
without cross compilation.
8+
9+
Bump the sourcelink version to pick up the ability to parse git info
10+
without depending on libgit2sharp. This allows sourcelink to work on
11+
arm64. The version is the same as the one recently added to core-setup:
12+
https://github.com/dotnet/core-setup/pull/7696
13+
14+
Introduce a new 'BuildArchitecture' msbuild property that contains the host
15+
architecture (arm64, x64, etc). This is the architecture of the
16+
currently running machine, and may be different from the architecture we
17+
are targetting in the case of cross compilation.
18+
19+
There's a gotcha with BuildArchitecture: under Visual Studio (an x86) process,
20+
we generally want a x64 architecture. So try and restrict it to arm64 only.
21+
22+
Use BuildArchitecture to determine whether _crossDir and LibCLRJitRid need to
23+
be special-cased for arm64 or or not.
24+
---
25+
Directory.Build.props | 6 ++++++
26+
eng/Versions.props | 2 +-
27+
src/redist/targets/Crossgen.targets | 6 +++---
28+
src/redist/targets/GenerateLayout.targets | 4 ++--
29+
src/redist/targets/GetRuntimeInformation.targets | 1 -
30+
5 files changed, 12 insertions(+), 7 deletions(-)
31+
32+
diff --git a/Directory.Build.props b/Directory.Build.props
33+
index b65a72410..be3834859 100644
34+
--- a/Directory.Build.props
35+
+++ b/Directory.Build.props
36+
@@ -7,6 +7,12 @@
37+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
38+
</PropertyGroup>
39+
40+
+ <PropertyGroup>
41+
+ <BuildArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</BuildArchitecture>
42+
+ <Architecture Condition="'$(BuildArchitecture)' == 'arm64'">$(BuildArchitecture)</Architecture>
43+
+ <Architecture Condition="'$(Architecture)' == ''">x64</Architecture>
44+
+ </PropertyGroup>
45+
+
46+
<PropertyGroup>
47+
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
48+
<DebugType>embedded</DebugType>
49+
diff --git a/eng/Versions.props b/eng/Versions.props
50+
index 344a325bf..37e478e72 100644
51+
--- a/eng/Versions.props
52+
+++ b/eng/Versions.props
53+
@@ -87,7 +87,7 @@
54+
<VersionToolsVersion>$(BuildTasksFeedToolVersion)</VersionToolsVersion>
55+
<DotnetDebToolVersion>2.0.0</DotnetDebToolVersion>
56+
<MicrosoftNETTestSdkVersion>15.8.0</MicrosoftNETTestSdkVersion>
57+
- <MicrosoftSourceLinkVersion>1.0.0-beta2-18618-05</MicrosoftSourceLinkVersion>
58+
+ <MicrosoftSourceLinkVersion>1.0.0-beta2-19367-01</MicrosoftSourceLinkVersion>
59+
</PropertyGroup>
60+
<PropertyGroup>
61+
<!-- pinned dependency. This package is not being produced outside of the 2.0 branch of corefx and should not change. -->
62+
diff --git a/src/redist/targets/Crossgen.targets b/src/redist/targets/Crossgen.targets
63+
index 8d3091307..931dff2d9 100644
64+
--- a/src/redist/targets/Crossgen.targets
65+
+++ b/src/redist/targets/Crossgen.targets
66+
@@ -5,14 +5,14 @@
67+
68+
<PropertyGroup>
69+
<RuntimeNETCoreAppPackageName>runtime.$(SharedFrameworkRid).microsoft.netcore.app</RuntimeNETCoreAppPackageName>
70+
- <_crossDir Condition="'$(Architecture)' == 'arm64'">/x64_arm64</_crossDir>
71+
+ <_crossDir Condition="'$(Architecture)' == 'arm64' and '$(BuildArchitecture)' != 'arm64'">/x64_arm64</_crossDir>
72+
<_crossDir Condition="'$(Architecture)' == 'arm' And '$(OSName)' == 'win'">/x86_arm</_crossDir>
73+
<_crossDir Condition="'$(Architecture)' == 'arm' And '$(OSName)' == 'linux'">/x64_arm</_crossDir>
74+
<CrossgenPath>$(NuGetPackageRoot)/$(RuntimeNETCoreAppPackageName)/$(MicrosoftNETCoreAppPackageVersion)/tools$(_crossDir)/crossgen$(ExeExtension)</CrossgenPath>
75+
- <LibCLRJitRid Condition="!$(Architecture.StartsWith('arm'))">$(SharedFrameworkRid)</LibCLRJitRid>
76+
- <LibCLRJitRid Condition="'$(Architecture)' == 'arm64'">x64_arm64</LibCLRJitRid>
77+
+ <LibCLRJitRid Condition="'$(Architecture)' == 'arm64' and '$(BuildArchitecture)' == 'x64'">x64_arm64</LibCLRJitRid>
78+
<LibCLRJitRid Condition="'$(Architecture)' == 'arm' And '$(OSName)' == 'win'">x86_arm</LibCLRJitRid>
79+
<LibCLRJitRid Condition="'$(Architecture)' == 'arm' And '$(OSName)' == 'linux'">x64_arm</LibCLRJitRid>
80+
+ <LibCLRJitRid Condition="'$(LibCLRJitRid)' == ''">$(SharedFrameworkRid)</LibCLRJitRid>
81+
<LibCLRJitPath>$(NuGetPackageRoot)/$(RuntimeNETCoreAppPackageName)/$(MicrosoftNETCoreAppPackageVersion)/runtimes/$(LibCLRJitRid)/native/$(DynamicLibPrefix)clrjit$(DynamicLibExtension)</LibCLRJitPath>
82+
<SharedFrameworkNameVersionPath>$(RedistLayoutPath)shared/$(SharedFrameworkName)/$(MicrosoftNETCoreAppRuntimewinx64PackageVersion)</SharedFrameworkNameVersionPath>
83+
<DIASymReaderCrossgenFilter>*</DIASymReaderCrossgenFilter>
84+
diff --git a/src/redist/targets/GenerateLayout.targets b/src/redist/targets/GenerateLayout.targets
85+
index d2a0b6fd1..a0bcf6f35 100644
86+
--- a/src/redist/targets/GenerateLayout.targets
87+
+++ b/src/redist/targets/GenerateLayout.targets
88+
@@ -25,11 +25,11 @@
89+
90+
<!-- Use the "x64" Rid when downloading Linux shared framework 'DEB' installer files. -->
91+
<SharedFrameworkInstallerFileRid>$(CoreSetupRid)</SharedFrameworkInstallerFileRid>
92+
- <SharedFrameworkInstallerFileRid Condition=" '$(IsDebianBaseDistro)' == 'true' OR '$(IsRPMBasedDistro)' == 'true' ">x64</SharedFrameworkInstallerFileRid>
93+
+ <SharedFrameworkInstallerFileRid Condition=" '$(IsDebianBaseDistro)' == 'true' OR '$(IsRPMBasedDistro)' == 'true' ">$(Architecture)</SharedFrameworkInstallerFileRid>
94+
95+
<!-- Use the "x64" Rid when downloading Linux runtime dependencies Debian package. -->
96+
<RuntimeDepsInstallerFileRid>$(CoreSetupRid)</RuntimeDepsInstallerFileRid>
97+
- <RuntimeDepsInstallerFileRid Condition=" '$(IsDebianBaseDistro)' == 'true' ">x64</RuntimeDepsInstallerFileRid>
98+
+ <RuntimeDepsInstallerFileRid Condition=" '$(IsDebianBaseDistro)' == 'true' ">$(Architecture)</RuntimeDepsInstallerFileRid>
99+
100+
<DownloadedSharedHostInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-host$(InstallerStartSuffix)-$(SharedHostVersion)-$(SharedFrameworkInstallerFileRid)$(InstallerExtension)</DownloadedSharedHostInstallerFileName>
101+
<DownloadedHostFxrInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-hostfxr$(InstallerStartSuffix)-$(HostFxrVersion)-$(SharedFrameworkInstallerFileRid)$(InstallerExtension)</DownloadedHostFxrInstallerFileName>
102+
diff --git a/src/redist/targets/GetRuntimeInformation.targets b/src/redist/targets/GetRuntimeInformation.targets
103+
index 3b14d1203..f49c7262f 100644
104+
--- a/src/redist/targets/GetRuntimeInformation.targets
105+
+++ b/src/redist/targets/GetRuntimeInformation.targets
106+
@@ -13,7 +13,6 @@
107+
<OSName Condition=" '$(OSName)' == '' AND '$(IsLinux)' == 'True' ">linux</OSName>
108+
<OSPlatform Condition=" '$(OSPlatform)' == '' AND '$(IsLinux)' == 'True' ">linux</OSPlatform>
109+
110+
- <Architecture Condition=" '$(Architecture)' == '' ">x64</Architecture>
111+
<Rid Condition=" '$(Rid)' == '' ">$(OSName)-$(Architecture)</Rid>
112+
</PropertyGroup>
113+
114+
--
115+
2.18.1
116+

0 commit comments

Comments
 (0)