Skip to content

Commit efd4740

Browse files
committed
scripts/Build.bat: specify nuget pkg install dir
The Build.bat script installs the vswhere package in order to locate MSBuild if it is not already found on the %PATH%, however it does not correctly make use of the %VFS_PACKAGESDIR% directory that should house all the packages used in the build process (such as the GVFS.ProjFS package). Correct the script by adding the -OutputDirectory argument to the nuget install command for vswhere.
1 parent c1c54e5 commit efd4740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Build.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ IF NOT EXIST "%NUGET_EXEC%" (
4343

4444
REM Acquire vswhere to find VS installations reliably
4545
SET VSWHERE_VER=2.6.7
46-
"%NUGET_EXEC%" install vswhere -Version %VSWHERE_VER% || exit /b 1
46+
"%NUGET_EXEC%" install vswhere -Version %VSWHERE_VER% -OutputDirectory %VFS_PACKAGESDIR% || exit /b 1
4747
SET VSWHERE_EXEC="%VFS_PACKAGESDIR%\vswhere.%VSWHERE_VER%\tools\vswhere.exe"
4848

4949
REM Assumes default installation location for Windows 10 SDKs

0 commit comments

Comments
 (0)