Reputation: 455
I am using vswhere to find the installation path of MSBuild for some .bat-scripts. This was working fine until I upgraded to version 15.8.1 of Visual Studio 2017.
Now it comes up empty. This is my .bat-script:
for /f "usebackq tokens=1* delims=: " %%i in (`..\Tools\vswhere.exe -latest -requires Microsoft.Component.MSBuild`) do (
if /i "%%i"=="installationPath" set InstallDir=%%j)
echo %InstallDir%\Common7
Which has the following output:
\Common7
Has anyone else seen this issue? I've tried to update the vswhere.exe file to the one installed alongside the newest version of Visual Studio, but still no success. I'm running Windows 10.
Upvotes: 1
Views: 3253
Reputation: 455
Updating to V 15.8.2 fixed my issue. Possibly something went wrong when installing version 15.8.1.
Upvotes: 1