dotnet-installer/eng/restore-toolset.sh
Ilya Leoshkevich 5501c7f238 Fix ArcadeBuildTarball on s390x
Installing 2.1.0 framework on s390x causes problems, because it's not
supported there. Furthermore, it's needed only for dotnet-deb-tool,
which is no longer used [1] [2]. So do not install it at all.

[1] b9877b6e61
[2] https://github.com/dotnet/installer/pull/9631
2022-08-11 12:59:49 +02:00

32 lines
No EOL
885 B
Bash

function InitializeCustomSDKToolset {
if [[ "$restore" != true ]]; then
return
fi
# The following frameworks and tools are used only for testing.
# Do not attempt to install them in source build.
if [[ "${DotNetBuildFromSource:-}" == "true" ]]; then
return
fi
#InstallDotNetSharedFramework "1.0.5"
#InstallDotNetSharedFramework "1.1.2"
InitializeDotNetCli true
}
# Installs additional shared frameworks for testing purposes
function InstallDotNetSharedFramework {
local version=$1
local dotnet_root=$DOTNET_INSTALL_DIR
local fx_dir="$dotnet_root/shared/Microsoft.NETCore.App/$version"
if [[ ! -d "$fx_dir" ]]; then
GetDotNetInstallScript "$dotnet_root"
local install_script=$_GetDotNetInstallScript
bash "$install_script" --version $version --install-dir "$dotnet_root" --runtime "dotnet" || true
fi
}
InitializeCustomSDKToolset