Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 943aba0

Browse files
committed
Use minimal logging when getting the VS install root from build.cmd
1 parent 9b3b8fb commit 943aba0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if %MSBuildMajorVersion% LSS 15 (
5959

6060
:: Ensure developer command prompt variables are set
6161
if "%VisualStudioVersion%" == "" (
62-
for /f "delims=" %%i in ('msbuild build.props -nologo /t:GetVsInstallRoot') do set "VsInstallRoot=%%i" & goto :VsInstallRootDone
62+
for /f "delims=" %%i in ('msbuild build.props /nologo /v:m /t:GetVsInstallRoot') do set "VsInstallRoot=%%i" & goto :VsInstallRootDone
6363
:VsInstallRootDone
6464
for /f "tokens=* delims= " %%i in ("%VsInstallRoot%") do set "VsInstallRoot=%%i"
6565
set "DeveloperCommandPrompt=%VsInstallRoot%\Common7\Tools\VsDevCmd.bat"

0 commit comments

Comments
 (0)