diff --git a/build.cmd b/build.cmd index ff2cbdb516..dbec262472 100644 --- a/build.cmd +++ b/build.cmd @@ -2,11 +2,11 @@ cd %~dp0 SETLOCAL -SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe +SET CACHED_NUGET="%LocalAppData%\NuGet\NuGet.exe" IF EXIST %CACHED_NUGET% goto copynuget echo Downloading latest version of NuGet.exe... -IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet +IF NOT EXIST "%LocalAppData%\NuGet" md "%LocalAppData%\NuGet" @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'" :copynuget