Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit ae5e396

Browse files
author
John Beisner
committed
Handling the possible semi-colon(s) in the property parameters.
1 parent 57a2ccf commit ae5e396

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
REM Copyright (c) .NET Foundation and contributors. All rights reserved.
44
REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
55

6-
powershell -ExecutionPolicy Bypass -NoProfile -NoLogo -Command "& \"%~dp0run-build.ps1\" %*; exit $LastExitCode;"
6+
powershell -ExecutionPolicy Bypass -NoProfile -NoLogo -Command "& \"%~dp0run-build.ps1\" '%*'; exit $LastExitCode;"
77
if %errorlevel% neq 0 exit /b %errorlevel%

run-build.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ $env:VSTEST_TRACE_BUILD=1
8080
# install a stage0
8181
$dotnetInstallPath = Join-Path $RepoRoot "scripts\obtain\dotnet-install.ps1"
8282

83-
Write-Output "$dotnetInstallPath -Channel ""release/2.0.0"" -InstallDir $env:DOTNET_INSTALL_DIR -Architecture ""$Architecture"""
84-
Invoke-Expression "$dotnetInstallPath -Channel ""release/2.0.0"" -InstallDir $env:DOTNET_INSTALL_DIR -Architecture ""$Architecture"""
83+
Write-Output "$dotnetInstallPath -InstallDir $env:DOTNET_INSTALL_DIR -Architecture ""$Architecture"" -Channel ""release/2.0.0"""
84+
Invoke-Expression "$dotnetInstallPath -InstallDir $env:DOTNET_INSTALL_DIR -Architecture ""$Architecture"" -Channel ""release/2.0.0"""
8585
if ($LastExitCode -ne 0)
8686
{
8787
Write-Output "The .NET CLI installation failed with exit code $LastExitCode"
8888
exit $LastExitCode
8989
}
9090

91-
Write-Output "$dotnetInstallPath -Channel ""master"" -InstallDir $env:DOTNET_INSTALL_DIR_PJ -Architecture ""$Architecture"" -Version 1.0.0-preview2-1-003177"
92-
Invoke-Expression "$dotnetInstallPath -Channel ""master"" -InstallDir $env:DOTNET_INSTALL_DIR_PJ -Architecture ""$Architecture"" -Version 1.0.0-preview2-1-003177"
91+
Write-Output "$dotnetInstallPath -InstallDir $env:DOTNET_INSTALL_DIR_PJ -Architecture ""$Architecture"" -Version 1.0.0-preview2-1-003177"
92+
Invoke-Expression "$dotnetInstallPath -InstallDir $env:DOTNET_INSTALL_DIR_PJ -Architecture ""$Architecture"" -Version 1.0.0-preview2-1-003177"
9393
if ($LastExitCode -ne 0)
9494
{
9595
Write-Output "The .NET CLI installation failed with exit code $LastExitCode"

0 commit comments

Comments
 (0)