2018-11-02 06:15:59 +00:00
|
|
|
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.
|
2024-02-26 10:51:44 +00:00
|
|
|
if [[ $product_build == true || $properties == *"DotNetBuildRepo=true"* ]]; then
|
2018-11-02 06:15:59 +00:00
|
|
|
return
|
|
|
|
fi
|
|
|
|
|
|
|
|
#InstallDotNetSharedFramework "1.0.5"
|
|
|
|
#InstallDotNetSharedFramework "1.1.2"
|
|
|
|
|
2018-12-20 00:08:49 +00:00
|
|
|
InitializeDotNetCli true
|
2018-11-02 06:15:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Installs additional shared frameworks for testing purposes
|
|
|
|
function InstallDotNetSharedFramework {
|
|
|
|
local version=$1
|
2018-12-28 21:22:29 +00:00
|
|
|
local dotnet_root=$DOTNET_INSTALL_DIR
|
2018-11-02 06:15:59 +00:00
|
|
|
local fx_dir="$dotnet_root/shared/Microsoft.NETCore.App/$version"
|
|
|
|
|
|
|
|
if [[ ! -d "$fx_dir" ]]; then
|
|
|
|
GetDotNetInstallScript "$dotnet_root"
|
|
|
|
local install_script=$_GetDotNetInstallScript
|
2018-12-28 21:22:29 +00:00
|
|
|
|
|
|
|
bash "$install_script" --version $version --install-dir "$dotnet_root" --runtime "dotnet" || true
|
2018-11-02 06:15:59 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
InitializeCustomSDKToolset
|