diff --git a/build.cmd b/build.cmd index 4afad047142..142478bcf10 100644 --- a/build.cmd +++ b/build.cmd @@ -1,3 +1,3 @@ @echo off -powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\common\Build.ps1""" -restore -build %*" +powershell -ExecutionPolicy ByPass -NoProfile -command "& '%~dp0eng\common\Build.ps1' -restore -build %*" exit /b %ErrorLevel% diff --git a/restore.cmd b/restore.cmd index 51cb3c4dc8f..6982f6a61a5 100644 --- a/restore.cmd +++ b/restore.cmd @@ -1,3 +1,3 @@ @echo off -powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\common\Build.ps1""" -restore %*" +powershell -ExecutionPolicy ByPass -NoProfile -command "& '%~dp0eng\common\Build.ps1' -restore %*" exit /b %ErrorLevel% diff --git a/test.cmd b/test.cmd index db9e8e061d3..52f6f25f5f9 100644 --- a/test.cmd +++ b/test.cmd @@ -1,3 +1,3 @@ @echo off -powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\common\Build.ps1""" -test %*" +powershell -ExecutionPolicy ByPass -NoProfile -command "& '%~dp0eng\common\Build.ps1' -test %*" exit /b %ErrorLevel%