diff --git a/init-tools.ps1 b/init-tools.ps1 index cf4b9a174..5176862d9 100644 --- a/init-tools.ps1 +++ b/init-tools.ps1 @@ -11,7 +11,7 @@ $RepoRoot = "$PSScriptRoot" # Install a stage 0 Write-Host "Installing .NET Core CLI Stage 0 from branchinfo channel" -& "$RepoRoot\scripts\obtain\dotnet-install.ps1" -Channel feature-msbuild -Architecture $Architecture -Verbose +& "$RepoRoot\scripts\obtain\dotnet-install.ps1" -Channel $env:CHANNEL -Architecture $Architecture -Verbose if($LASTEXITCODE -ne 0) { throw "Failed to install stage0" } # Put the stage0 on the path diff --git a/init-tools.sh b/init-tools.sh index 1fb322d57..2b66c7f83 100755 --- a/init-tools.sh +++ b/init-tools.sh @@ -14,7 +14,7 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli done DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" -$DIR/scripts/obtain/dotnet-install.sh --channel feature-msbuild --verbose +$DIR/scripts/obtain/dotnet-install.sh --channel $CHANNEL --verbose __init_tools_log=$DIR/init-tools.log __BUILD_TOOLS_CLI_VERSION=$(cat "$DIR/BuildToolsCliVersion.txt")