Skip to content

Commit

Permalink
Update VsWhere version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeavon committed Nov 20, 2017
1 parent ea4a8ee commit 167f113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-appveyor.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ IF NOT EXIST "%toolsFolder%" (

IF NOT EXIST "%toolsFolder%vswhere.exe" (
ECHO vswhere not found - fetching now
nuget install vswhere -Version 2.0.2 -Source nuget.org -OutputDirectory tools
nuget install vswhere -Version 2.2.11 -Source nuget.org -OutputDirectory tools
)

FOR /f "delims=" %%A in ('dir "%toolsFolder%vswhere.*" /b') DO SET "vswhereExePath=%toolsFolder%%%A\"
MOVE "%vswhereExePath%tools\vswhere.exe" "%toolsFolder%vswhere.exe"

for /f "usebackq tokens=1* delims=: " %%i in (`"%CD%\tools\vswhere.exe" -latest -requires Microsoft.Component.MSBuild`) do (
if /i "%%i"=="installationPath" set InstallDir=%%j
if /i "%%i"=="installationPath" set InstallDir=%%j
)

SET VSWherePath="%InstallDir%\MSBuild"
Expand Down

0 comments on commit 167f113

Please sign in to comment.