File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -459,7 +459,6 @@ set vswfilter=!vswPriority!
459459
460460:_vswAttempt
461461call :dbgprint " attempts with filter: " vswfilter vswPreRel
462- call :dbgprint " using: " vswbin
463462
464463set " vspath = " & set " vsver = "
465464for /F " usebackq tokens=1* delims=: " %%a in (`" !vswbin! " -nologo !vswPreRel! -requires !vswfilter! Microsoft.Component.MSBuild`) do (
@@ -527,7 +526,7 @@ for /F "tokens=1,2 delims=." %%a in ("!vsver!") do (
527526REM VS2019 changes the path
528527if !vsver! geq 16 set vsver = Current
529528
530- if not exist " !vspath! \MSBuild\!vsver! \Bin" set " %3 = " & exit /B 0
529+ if not exist " !vspath! \MSBuild\!vsver! \Bin" set " %3 = " & exit /B %ERROR_PATH_NOT_FOUND%
531530
532531set _msbp = !vspath! \MSBuild\!vsver! \Bin
533532call :dbgprint " found path via vswhere: " _msbp
You can’t perform that action at this time.
0 commit comments