Skip to content

Commit fa9268d

Browse files
andrewkittredgeTomFinley
authored andcommitted
Handle space in the directory path for building. (#2925)
1 parent c5aab77 commit fa9268d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

init-tools.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if NOT exist "%DOTNET_LOCAL_PATH%" (
7575
if exist "%BUILD_TOOLS_PATH%" goto :afterbuildtoolsrestore
7676
echo Restoring BuildTools version %BUILDTOOLS_VERSION%...
7777
echo Running: "%DOTNET_CMD%" restore "%INIT_TOOLS_RESTORE_PROJECT%" --no-cache --packages "%PACKAGES_DIR%" --source "%BUILDTOOLS_SOURCE%" /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% /p:ToolsDir=%TOOLRUNTIME_DIR% >> "%INIT_TOOLS_LOG%"
78-
call "%DOTNET_CMD%" restore "%INIT_TOOLS_RESTORE_PROJECT%" --no-cache --packages "%PACKAGES_DIR%" --source "%BUILDTOOLS_SOURCE%" /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% /p:ToolsDir=%TOOLRUNTIME_DIR% >> "%INIT_TOOLS_LOG%"
78+
call "%DOTNET_CMD%" restore "%INIT_TOOLS_RESTORE_PROJECT%" --no-cache --packages "%PACKAGES_DIR%" --source "%BUILDTOOLS_SOURCE%" /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% /p:ToolsDir="%TOOLRUNTIME_DIR%" >> "%INIT_TOOLS_LOG%"
7979
if NOT exist "%BUILD_TOOLS_PATH%\init-tools.cmd" (
8080
echo ERROR: Could not restore build tools correctly. 1>&2
8181
goto :error
@@ -101,4 +101,4 @@ exit /b 0
101101
:error
102102
echo Please check the detailed log that follows. 1>&2
103103
type "%INIT_TOOLS_LOG%" 1>&2
104-
exit /b 1
104+
exit /b 1

0 commit comments

Comments
 (0)