Update dependencies from https://github.com/dotnet/arcade build 20190205.5 (#396)

This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19105.5
This commit is contained in:
dotnet-maestro[bot] 2019-02-06 13:45:20 +00:00 committed by GitHub
parent 4100ddf0c4
commit 3a9bb28036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 6 deletions

View file

@ -28,9 +28,9 @@
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19104.18">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19105.5">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>8888f0d15c7cc51018ffaf0a9a408f7ba8e82301</Sha>
<Sha>fa3e68e079feda7443f2a783dc2065b087038113</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>

View file

@ -161,9 +161,10 @@ function GetDotNetInstallScript([string] $dotnetRoot) {
return $installScript
}
function InstallDotNetSdk([string] $dotnetRoot, [string] $version) {
function InstallDotNetSdk([string] $dotnetRoot, [string] $version, [string] $architecture = "") {
$installScript = GetDotNetInstallScript $dotnetRoot
& $installScript -Version $version -InstallDir $dotnetRoot
$archArg = if ($architecture) { $architecture } else { "<auto>" }
& $installScript -Version $version -InstallDir $dotnetRoot -Architecture $archArg
if ($lastExitCode -ne 0) {
Write-Host "Failed to install dotnet cli (exit code '$lastExitCode')." -ForegroundColor Red
ExitWithExitCode $lastExitCode

View file

@ -153,7 +153,12 @@ function InstallDotNetSdk {
GetDotNetInstallScript "$root"
local install_script=$_GetDotNetInstallScript
bash "$install_script" --version $version --install-dir "$root" || {
local arch_arg=""
if [[ $# == 3 ]]; then
arch_arg="--architecture $3"
fi
bash "$install_script" --version $version --install-dir "$root" $arch_arg || {
local exit_code=$?
echo "Failed to install dotnet SDK (exit code '$exit_code')." >&2
ExitWithExitCode $exit_code

View file

@ -3,6 +3,6 @@
"dotnet": "3.0.100-preview-009812"
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19104.18"
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19105.5"
}
}